Problem Description
输入一个三位正整数,将它反向输出。
Input
3位正整数。
Output
逆置后的正整数。
Example Input
123
Example Output
321
Hint
注意130逆置后是31
Author
crq
#include <stdio.h>
int main()
{ int a,b,c,m,n;
scanf("%d", &m);
a = m/100;
b = m/10%10;
c = m%10;
n = c*100+b*10+a;
printf("%d\n",n);
return 0;
}