int main( )
{
float p,w,s,d,f;
scanf("%f,%f,%f",&s,&p,&d);
if( s<250)
{
f=p*w*s;
printf("%f\n",f);
}
else
if(250<=s<500)
{
f=p*w*s*(1-d);
d=0.02;
printf("%f\n",f);
}
else
if(500<=s<1000)
{
f=p*w*s*(1-d);
d=0.05;
printf("%f\n",f);
}
else
if(1000<=s<2000)
{
f=p*w*s*(1-d);
d=0.08;
printf("%f\n",f);
}
else
if(2000<=s<3000)
{
f=p*w*s*(1-d);
d=0.1;
printf("%f\n",f);
}
else
if(3000<=s)
{
f=p*w*s*(1-d);
d=0.15;
printf("%f\n",f);
}
return 0;
为什么我输入100,20,300后是运行结果是0.000000
还显示Process exited after 10.7 seconds with return value0.