晕拉 真受打击呀 ~~比我学的好这么多。。。

main()
{int n;
float price,todayprice;
scanf("%d,%f",&n,&price);
if(n<5)
todayprice=n*price;
else if(n<10)
todayprice=n*price*(1-0.01);
else if(n<20)
todayprice=n*price*(1-0.02);
else if(n<30)
todayprice=n*price*(1-0.04);
else
todayprice=n*price*(1-0.06);
printf("you should pay %f yuan",todayprice);
}
程序已运行过,绝对正确
错误太多