main()
{
doublex,y,z;
printf("Pleaseinputx(x>=0):");
scanf("%lf",&x);
y=x-3000;
if(y<=500)
printf("z==0");//z是应纳个人所得税税额
else
if(y<5000)
{
z=y*0.2-125;
printf("z=%d",z);
}
else
if(y<40000)
{
z=y*0.3-1375;
printf("z=%d",z);
}
else
if(y<100000)
{
z=y*0.4-10375;
printf("z=%d",z);
}
else
if(y>100000)
{
z=y*45-15375;
printf("z=%d",z);
}
}