主题:格式输出的问题
int main(void)
{
float a,b,c;
scanf("%f,%f,%f",&a,&b,&c);
printf("%4.1f+%4.1f+%4.1f",a,b,c);
}
当输如1.0 2.0 3.0 输出怎么是1.0+0.0 +0.0
{
float a,b,c;
scanf("%f,%f,%f",&a,&b,&c);
printf("%4.1f+%4.1f+%4.1f",a,b,c);
}
当输如1.0 2.0 3.0 输出怎么是1.0+0.0 +0.0