错了
不好意思
现在应该对了
#include <stdio.h>
main ()
{
long int i;
float b;
scanf("ld",&i);
if (i<=100000)
b=i*0.1;
else if (i<=200000)
b=b+(i-100000)*0.075;
else if (i<=400000)
b=b+(i-200000)*0.05;
else if (i<=600000)
b=b+(i-400000)*0.03;
else if (i<=1000000)
b=b+(i-600000)*0.015;
else
b=b+(i-100)*0.01;
printf("%f",b);
getchar();
}