3500元起步个税计算
#include "stdio.h"double tax3500(double personaTAX)//
{
double a,tax;
a=(personaTAX-3500);
{
if(a<=0)
tax=0.0;
else if(a>0 && a<=1500)
tax=a*0.03;
else if(a>1500 && a<=4500)
tax=a*0.1-105;
else if(a>4500 && a<=9000)
tax=a*0.2-555;
else if(a>9000 && a<=35000)
tax=a*0.25-1005;
else if(a>35000 && a<=55000)
tax=a*0.3-2755;
else if(a>55000 && a<=80000)
tax=a*0.35-5505;
else if(a>80000)
tax=a*0.45-13505;
}
return (tax);
}
void main()
{
double a;
double personaTAX;
while(1)
{
printf("请输入需要计算个税的工资\n(3500元起步税率五险一金扣除后工资):");
scanf("%lf" ,&a) ;
personaTAX=tax3500(a);
printf("\n%0.2f元工资(3500元起步税率五险一金扣除后工资)应缴个税=%0.2f元\n\n",a,personaTAX);
printf(" 一切有为法,如梦幻泡影,如露亦如电,应作如是观。\n\n");
}
}