题解 | #反向输出一个四位数#
反向输出一个四位数
http://www.nowcoder.com/practice/1f7c1d67446e4361bf4af67c08e0b8b0
#include <stdio.h>
int main()
{
int a,z,x,c,v;
scanf("%d",&a);
z =a/1000;
x =a/100-z*10;
c =a/10-z*100-x*10;
v =a-z*1000-x*100-c*10;
printf("%d%d%d%d",v,c,x,z);
return 0;
}