1302 - 逆置正整数
通过次数
533
提交次数
1276
Time Limit : 1 秒
Memory Limit : 128 MB
输入一个三位正整数,将它反向输出。
Input
3位正整数。
Output
逆置后的正整数。
Examples
input
复制
123
output
复制
321
#include<stdio.h>
int main()
{
int x,a,b,c,y;
scanf("%d",&x);
c=x/100;
b=x/10%10;
a=x%10;
y=a*100+b*10+c;
printf("%d\n",y);
return 0;
}