33,323
社区成员




#include<stdio.h>
main(){
//注意我这里修改了,将y改用为浮点型
int x;
float y;
printf("input x,y");
scanf("%d %f",&x,&y);
//注意我这里修改了,指定了输出格式,并多了个换行符
printf("数量为:%d,单价为:%f \n",x,y);
float total;
total = x*y;
printf("总价为:%f",total);
return 0;
}