#include<stdio.h>
int main() {
int num;
int res = 0, num1 = 0;
scanf_s("%d", &num);
while (num != 0) {
num1 = num % 10;
res = num1 + 10 * res;
num = num / 10;
}
printf("逆制后的数字为:%d", res);
return 0;
}
整数逆制
最新推荐文章于 2023-08-14 16:45:53 发布