为什么不出结果呢?请教!谢谢
# include<stdio.h>void main()
{
long i;
double b,b1=0,b2=0,b4=0,b6=0,b10=0,other=0;
printf("please input the profits");
scanf("%ld,&i");
b1=10000*0.1;
b2=(20000-10000)*0.075+b1;
b4=(40000-20000)*0.05+b2;
b6=(60000-40000)*0.03+b4;
b10=(100000-60000)*0.015+b6;
other=(i-100000)*0.01+b10;
switch((i-1)/10000)
{
case 0:b=i*0.01;break;
case 1:b=(i-1e5)*0.075+b1;break;
case 2:
case 3:b=(i-2e5)*0.05+b2;break;
case 4:
case 5:b=(i-4e5)*0.03+b4;break;
case 6:
case 7:
case 8:
case 9:b=(i-6e5)*0.015+b6;break;
default:b=other;
}
printf("bonus=%10.2f\n",b);
}