wawcac @ 2016-04-03 01:22:46
#include<stdio.h>
int main()
{
long a,i,j;
scanf("%ld",&a);
if(a<0) {printf("-");a=0-a;}
while(a/10!=0)
{
if(i==0&&a%10==0) continue;
else
{
i=1;
printf("%ld",a%10);
a/=10;
}
}printf("%ld",a%10);
return 0;
}
by 麻爷在线 @ 2016-04-19 20:44:30
在continue那一块中加个a/=10