查看单个帖子
旧 2008-09-13, 22:21   #1
yemaogong
初级会员
 
注册日期: 2008-04-12
年龄: 83
帖子: 11
声望力: 18
yemaogong 正向着好的方向发展
默认 个人所得税程序

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)
yemaogong 当前离线   回复时引用此帖