求大佬看一下有没有问题
#include<stdio.h>main()
{
double a,b,c,d,e,g,n;
printf("input n:");
scanf("%lf",&n);
a=n*0.1;
b=a+(n-100000)*0.075;;
c=b+(n-200000)*0.05;
d=c+(n-400000)*0.03;
e=d+(n-600000)*0.015;
g=e+(n-1000000)*0.01;
switch((int)(n/100000))
{
case 1: printf("%7.2f\n",b);break;
case 2: printf("%7.2f\n",c);break;
case 4: printf("%7.2f\n",d);break;
case 6: printf("%7.2f\n",e);break;
case 10: printf("%7.2f\n",g);break;
default:printf("%7.2f\n",a);
}
}