[等待] C编程问题
# include & ltstdio.h & gt
# include & ltmath.h & gt
int main()
{浮点a,b,c,s,p;
Printf("苹果每斤3.5元,梨每斤2.6元,橘子每斤1.8元\ n ");
Printf("请输入苹果、梨和橘子的重量\ n ");
scanf("%f%f%f ",& amp一,& ampb & amp;c);
s = 3.5 * a+2.6 * b+1.8 * c;
Printf("你应该付%.2f元\n ",s);
Printf("给你:");
scanf("%f ",& ampp);
if(fabs(p-s)& lt;0.01)printf("正好,没有变化\ n ");
Else printf("你的零钱是%.2f元\n ",p-s);
返回0;
}