输入一个三位数,倒序输出,这怎么错?
#include<stdio.h>
int main()
{
int a,b,c,e,f;
scanf("%d",&e);
a=e%10;
b=e%100/10-e%10*0.1;
c=e/100-e%100/100;
f=a*100+b*10+c;
printf("%d",f);
return 0;
}
#include<stdio.h>
int main()
{
int a,b,c,e,f;
scanf("%d",&e);
a=e%10;
b=e%100/10-e%10*0.1;
c=e/100-e%100/100;
f=a*100+b*10+c;
printf("%d",f);
return 0;
}
举报