第十一周

来源:互联网 发布:js遍历dom树 编辑:程序博客网 时间:2024/04/25 18:01
//个人所得税计算器,#include <iostream>#include <cmath>using namespace std;int main(){int t;double y,x,salary,b;cout<<"请输入您本月的月收入总额:"<<endl;cin>>salary;y=salary-3500;t=(y>0)+(y>1500)+(y>4500)+(y>9000)+(y>35000)+(y>55000)+(y>80000);if(y>80000)x=y*45/100-13505;else if(y>55000)x=y*35/100-5505;else if(y>35000)x=y*30/100-2755;else if(y>9000)x=y*25/100-1005;else if(y>4500)x=y*20/100-555;    else if(y>1500)x=y*10/100-105;elsex=y*3/100;b=y-x;cout<<"您本月应交纳个人所得税为:"<<x<<"税后收入为:"<<b<<endl;       return 0;}

原创粉丝点击