#include "stdio.h"
int main()
{
int i, r;
while(scanf("%d",&i)==1){
int c=0;
if(i == 0)
printf("%d", i);
while(i != 0)
{
r = i % 10;
if(r==0){
if(c!=0){
printf("%d",r);
c++;
}
}else{
printf("%d",r);
c++;
}
i /= 10;
}
printf("\n");
}
return 0;
}
数字逆序输出 并去除前导0
最新推荐文章于 2024-10-13 13:25:23 发布