int main() {
unsigned int number;
int d;
printf("输入一个正整数:");
scanf("%d",&number);
printf("result:");
do {
d = number % 10; // 取余数运算
printf("%d",d);
number = number / 10;
} while (number != 0);
printf("\n");
return 0;
}
将整型数据倒序输出 C语言
最新推荐文章于 2024-06-15 00:15:00 发布