晕了....
#include "stdio.h"
main()
{
long int x,y=100000,z;
printf ("Please Input x : ");
scanf ("ld%",&x);
if (x<=y) z=x*0.1;
else if (x<=2*y) z=(x-y)*0.075+y*0.1;
else if (x<=4*y) z=(x-2*y)*0.05+y*0.1+y*0.075;
else if (x<=6*y) z=(x-4*y)*0.03+y*0.1+y+0.075+2*y*0.05;
else if (x<=10*y) z=(x-6*y)*0.015+y*0.1+y*0.075+2*y*0.05+2*y*0.03;
else z=(x-10*y)*0.01+y*0.1+y*0.075+2*y*0.05+2*y*0.03+4*y*0.015;
printf ("%d",z);
}
错哪了?