AndySMH @ 2020-11-06 14:24:54
#include<cstdio>
int main()
{
float a,e;
scanf("%f",&a);
int b,c,d,f;
b = a/100;
c = (a-100*b) / 10;
d = a-100*b-10*c;
e = a-100*b-10*c-d;
f = 10*e;
printf("%.3f",f+0.1*d+0.01*c+0.001*b);
return 0;
}
by 是小Cu啊 @ 2020-12-12 18:53:05
你这个没打using啊
by ananxyxmrzh @ 2021-02-14 22:53:18
@是小Cu啊 他用的是cstdio,不需要命名空间