问题标题: 1753   个人所得税

0
0

0
已采纳
臧启亚
臧启亚
初级光能
初级光能
if (a<=3500)b=0;
    else if (a<=5000)b=(a-3500)*0.03;
    else if (a<=8000)b=(5000-3500)*0.03+(a-5000)*0.1;
    else if (a<=12500)b=(5000-3500)*0.03+(8000-5000)*0.1+(a-8000)*0.2;
    else if (a<=38500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(a-12500)*0.25;
    else if (a<=58500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(38500-12500)*0.25+(a-38500)*0.3;
    else if (a<=83500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(38500-12500)*0.25+(58500-38500)*0.3+(a-58500)*0.35;
    else if (a>83500)b=(5000-3500)*0.03+(8000-5000)*0.1+(12500-8000)*0.2+(38500-12500)*0.25+(58500-38500)*0.3+(83500-58500)*0.35+(a-83500)*0.45;

对每一种情况进行判断

0
栾峻岩
栾峻岩
初级天翼
初级天翼

分层判断,输出,注意判断,计算要对,保留输出被忘了!

0
我要回答