首页 > 代码库 > 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