题解 | #数字颠倒#
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include<stdio.h>
int main(){
int a=0,wei=0,yushu=0;
char ling='0';
while(scanf("%d",&a)>0)
{
if(a==0)
printf("%c",ling);
while(a>0)
{
yushu=a%10;
printf("%c",yushu+'0');
a=a/10;
}
}
}