#java|*********************Java-->年薪计算小案例<--********************

import java.util.Scanner; public class AnLi { public static void main(String[]args){ while(true){ Scanner s=new Scanner(System.in); System.out.println("月薪"); int m=s.nextInt(); System.out.println("月数"); int i=s.nextInt(); System.out.println("年新"); int p=s.nextInt(); System.out.println("月薪:"+m); System.out.println("月数:"+i); System.out.println("年薪:"+p); if(p>20000){ System.out.println("超越99%的人"); }else if(p>10000){ System.out.println("超越90%的人"); } System.out.println("输入88,退出系统;输入66,继续计算"); int t12=s.nextInt(); if(t12==88) { System.out.println("退出系统"); break; } if(t12==88) { System.out.println("继续计算"); continue; } } }}

    推荐阅读