【十二题解】 | #数字颠倒#
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include<stdio.h>
int main(){
int number;
scanf("%d", &number);
if(number == 0){
printf("0");
return 0;
}
while(number!=0){
printf("%d", number%10);
number/=10;
}
return 0;
}