首页 > 代码库 > 补交最后一题
补交最后一题
#include<stdio.h>
int main(){
float a,tax=0,TaxIncome=0;
printf("请输入您的工资:");
scanf("%f",&a);
if(a<=1455){
tax=(a-3500)*0.03-0;
TaxIncome=a-tax;
}
else if(a>1455 || a<=4155){
tax=(a-3500)*0.1-105;
TaxIncome=a-tax;
}
else if(a>4155 || a<=7755){
tax=(a-3500)*0.2-555;
TaxIncome=a-tax;
}
else if(a<7755 || a<=27255){
tax=(a-3500)*0.25-1005;
TaxIncome=a-tax;
}
else if(a>27255 || a<=41255){
tax=(a-3500)*0.3-2755;
TaxIncome=a-tax;
}
else if(a>41255 || a<=57505){
tax=(a-3500)*0.35-5505;
TaxIncome=a-tax;
}
else{
tax=(a-3500)*0.45-13505;
TaxIncome=a-tax;
}
printf("您本月应缴税为:%f\n您本月应的税后收入为:%f\n",tax,TaxIncome);
return 0;
}
补交最后一题