#include<stdio.h>
int main()
{
int x;
// scanf("%d", &x);
x=12345;
int digit;
int ret=0;
while ( x>0 ) {
digit=x%10;
// printf(%d\n",digit);
ret = ret*10 + digit;
printf("x=%d,digit=%d,ret=%d\n",x,digit,ret);
x /=10;
}
printf("%d",ret);
return 0;
}
11-06
203
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-13
190
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)