#include<iostream>
#include<iomanip>
using namespace std;
int main(){
float x;
cin>>x;
cout<<setiosflags(ios::fixed)<<setprecision(2);
if(x<=1600)
cout<<0.00<<endl;
else if(x<=2500)
cout<<(x-1600)*0.05<<endl;
else if(x<=3500)
cout<<(x-1600)*0.1<<endl;
else if(x<=4500)
cout<<(x-1600)*0.15<<endl;
else
cout<<(x-1600)*0.2<<endl;
return 0;
}
分支-10. 计算个人所得税(10),布布扣,bubuko.com
原文地址:http://www.cnblogs.com/gnodidux/p/3819811.html