69,364
社区成员
发帖
与我相关
我的任务
分享
#include <stdio.h>
int main()
{
int a;
int b;
int c;
int d;
int e;
printf("请输入一个三位数\n");
scanf("%d",&a);
//提取各位数字
b = a/100; //百位数字
c = a%100/10; //十位数字
d = a%10; //个位数字
//重新组合
e = d*100+c*10+b;
printf("与%d的逆序的数是%d\n",a,e);
return 0;
}