Sara520 @ 2022-12-21 18:57:46
#include<stdio.h> int main()
{
float a; int b,c,d,f;
scanf("%f",&a);
a=a*10;
b=(int)a%10;
c=(int)a/10%10;
d=(int)a/100%10;
f=(int)a/1000;
printf("%d%d%d.%d",b,c,d,f);
return 0;
}
by demc_ty @ 2022-12-21 19:08:44
应该是
printf("%d.%d%d%d",b,c,d,f);