Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Four-digit reverse number in C language
Four-digit reverse number in C language
# include & ltstdio.h & gt

int? Xu Fan (int? n){

int? sum? =? 0,a? =? 1000;

Do {

sum? +=? (n % 10)* a;

Answer? /=? 10;

}while(n? =? n/ 10);

Return? Sum;

}

int? main(){

int? n? =? 0, me? =? 1000;

scanf("%d ",& ampn);

for(; ? I<? 10000; i++){

If (? I *n? = = Xu Fan (1))

{?

printf("%d\n ",I);

Return? 0;

}

}

Printf ("not found"); ?

Return? 0;

}