题解 | #数字颠倒#
数字颠倒
http://www.nowcoder.com/practice/ae809795fca34687a48b172186e3dafe
#include <string.h>
int main()
{
int x,i;
scanf("%d",&x);
printf("%d",x%10);
x/=10;
while(x!=0)
{
printf("%d",x%10);
x/=10;
}
}