Labfans是一个针对大学生、工程师和科研工作者的技术社区。 | 论坛首页 | 联系我们(Contact Us) |
![]() |
|
![]() |
#1 |
初级会员
注册日期: 2008-04-12
年龄: 83
帖子: 11
声望力: 18 ![]() |
![]()
Clear,x=input(‘输入全月应纳税工资');
if x<=500 s=x*0.05; else if x<=2000 s=0.1*(x-500)+25; else if x<=5000 s=0.15*(x-2000)+175; else if x<=20000 s=0.2*(x-5000)+625; else if x<=40000 s=0.25*(x-20000)+3625; else if x<=60000 s=0.3*(x-40000)+8625; else if x<=80000 s=0.35*(x-60000)+14625; else if x<=100000 s=0.4*(x-80000)+21625; else s=0.45*(x-100000)+29625; end end end end end end end end fprintf('应缴所得税:%8.2f\n',s) |
![]() |
![]() |