Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  19number.c
Language: C/C++
Code:
#include <stdio.h>
int main()
{
const int size=4;
int i,j,k;
int m[size];

for(i=1000;i<10000;i++) {
  j=i; for(k=size-1;k>=0;k--) {m[k]=j%10;j=j/10;}
  j=m[0]; m[0]=m[2]; m[2]=j;
  j=0; for(k=0;k<size;k++) {j=j*10; j=j+m[k];}
       if((19*j)==i) {printf(" Find %d",i); getchar();} 

}
     printf("Hello World!");
     getchar();
     return(0);
}
          
          
          
Comments: