登录论坛

查看完整版本 : 个人所得税程序


yemaogong
2008-09-13, 22:21
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)