#include<stdio.h>
main()
{
int fanwei;
float jine,zhekou,b;
printf("请输入查找范围 1,计算机文具 2,磁盘 3,计算机:");
scanf("%d",&fanwei);
printf("%d\n",fanwei);
printf("请输入您购买的金额");
printf("%f\n",,jine);
scanf("%f",&jine);
if(fanwei==1)
{
if(jine>=500)
zhekou=0.12;
else if(jine>=300)
zhekou=0.08;
else
zhekou=0.02;
}
else if(fanwei==2)
{
if(jine>=2000)
zhekou=0.10;
else(jine>=1500)
zhekou=0.05;
}
else if(fanwei==3)
{
if(jine>=3000)
zhekuo=0.10;
else(jine>1500)
zhekou=0.05;
}
b=jine-(jine*zhekou);
printf("打折后的价格%f",b);
}
28.30行报错我看了好久自己发现不了错误请高手指正下~