/*如输入12345,输出54321*/
#include"stdio.h"
int main()
{
int number;
scanf("%d",&number);
int sum=0;
while(number){
sum=sum*10+number%10;
number=number/10;
}
printf("%d\n",sum);
return 0;
}
逆序输出单个数字
最新推荐文章于 2022-10-28 21:23:48 发布