首页 > 代码库 > java2
java2
mport java.util.Scanner;public class java1 {public static void main(String[] args) { Scanner sc = new Scanner(System.in);System.out.print("请输入你的工资"); double money = sc .nextDouble();double taxmong =500;double number =3500;double results = money - taxmong -number;if (results<=1500) { System.out.print("个人税为"+(results*0.03-0)+"元");}else if (results<=4500){ System.out.print("个人税为"+(results*0.1-105)+"元");} else if (results<=9000){ System.out.print("个人税为"+(results*0.2-555+"元")); }else if (results<=35000){ System.out.print("个人税为"+(results*0.25-1005+"元"));}else if (results<=55000){ System.out.print("个人税为"+(results*0.3-2755)+"元");}else if (results<=80000){ System.out.print("个人税为"+ (results*0.35-5000)+"元");}else if (results>=80000){ System.out.print("个人税为"+(results*0*45-100000)+"元");}else {System.out.printf("谢谢使用");}}}
java2
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。