import java.util.Scanner; public class Dome1{ public static void main(String[]args){ Scanner input = new Scanner(System.in); String id="",swd="",id1="admin",swd1="666"; int a,b,c,max; System.out.print("请输入账号:"); id=input.next(); if(id.equals(id1)){ System.out.print("请输入密码:"); swd=input.next(); if(swd.equals(swd1)){ System.out.print("恭喜登录成功!"); System.out.print("请输入第一个数:"); a=input.nextInt(); System.out.print("请输入第二个数:"); b=input.nextInt(); System.out.print("请输入第三个数:"); c=input.nextInt(); if(a>b){ max = a; } else{ max = b ; } if(max >c){ max= max ; } else{ max =c; } System.out.println("最大值为:"+max); } } else{ System.out.print("账号错误,请重新输入账号:"); } } }