# 工资纳税系统

#include <stdio.h>

#include <stdlib.h>

int main ( )

{
int Salary;//总工资

double Tax;//应交税金

double Include=0;//税后收入

double x=0;//超出1600元的部分

int a=0,i;
printf ("*********工资纳税系统**************\n");
printf ("*                                 *\n");
printf ("*  欢迎使用工资纳税系统(*^__^*)   *\n");
printf ("*                                 *\n");
printf ("***********************************\n");
for(i=0;;i++)
{
printf ("请输入您本月的工资：\n");

scanf ("%d",&Salary);
x=Salary-1600;
if(x<=0)
Tax = 0;
else if (x>0&x<=500)
Tax = x*0.05;
else if (x>500&x<=2000)
Tax = 500*0.05+(x-500)*0.10;
else if (x>2000&x<=5000)
Tax = 500*0.05+1500*0.10+(x-2000)*0.15;
else if (x>5000&x<=20000)
Tax = 500*0.50+1500*0.10+3000*0.15+(x-5000)*0.20;
else if (x>20000&x<=40000)
Tax = 500*0.50+1500*0.10+3000*0.15+15000*0.20+(x-20000)*0.25;
else if (x>40000&x<=60000)
Tax = 500*0.50+1500*0.10+3000*0.15+15000*0.20+20000*0.25+(x-40000)*0.30;
else if (x>60000&x<=80000)
Tax = 500*0.50+1500*0.10+3000*0.15+15000*0.20+20000*0.25+20000*0.30+(x-60000)*0.35;
else if (x>80000&x<=100000)
Tax = 500*0.50+1500*0.10+3000*0.15+15000*0.20+20000*0.25+20000*0.30+20000*0.35+(x-80000)*0.40;
else if (x>100000)
Tax = 500*0.50+1500*0.10+3000*0.15+15000*0.20+20000*0.25+20000*0.30+20000*0.35+20000*0.40+(x-100000)*0.45;
Include = Salary - Tax;
printf("您本月应缴纳所得税为%.2lf元，税后收入为%.2lf元\n",Tax,Include);
printf("继续请按1，按任意键退出\n");
scanf("%d",&a);
if(a==1)
{
continue;
}
else
break;
}

return 0;
}
• 本文已收录于以下专栏：

举报原因： 您举报文章：工资纳税系统 色情 政治 抄袭 广告 招聘 骂人 其他 (最多只允许输入30个字)