import java.util.Scanner;
public class A04 {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner input = new Scanner (System.in);
System.out.println("请输入基本工资:");
int Wage=input.nextInt();
System.out.println("该员工的工资细目为:");
System.out.println("基本工资:"+Wage);
System.out.println("物价津贴:"+Wage*0.4);
System.out.println("房租津贴:"+Wage*0.25);
double sum=Wage+Wage*0.4+Wage*0.25;
System.out.println("员工薪水:"+sum);
}
}
转载于:https://blog.51cto.com/765133133/1420137