#include
int main(void)
{
int a,b,c,d,e;
printf("请输入一个三位数:");
scanf("%d",&a);
b = a/100;
c = (a-b*100)/10;
d = a-b*100-c*10;
e = d*100+c*10+b;
printf("逆序输出:%d", e);
return 0;
}
main(){
int x;
scanf("%d",&x);
x=(x%10)*100 + (x/10%10)*10 + (x/100)
printf("%d\n",x);
}
#include
int main()
{
char num[3];
scanf("%c%c%c",&num[0],&num[1],&num[2]);
printf("%c%c%c",num[2],num[1],num[0]);
return 0;
}