#include <stdio.h> int main() { int num; printf("请输入一个三位数:\n"); scanf("%d",&num); int a=num % 10; int b=num / 10 % 10; int c=num / 100; int sum=a * 100 + b * 10 + c; printf("三位数的逆序输出:%d\n",sum); return 0; }
标签:输出,10,int,sum,三位数,num,逆序 From: https://www.cnblogs.com/yesiming/p/17400164.html