Scanner input =new Scanner(System.in); int a=input.nextInt(); int b=input.nextInt(); int c=input.nextInt(); int max=0; if(a>b){ max=a }else{ max=b } if(max<c){ max=c; } System.out.printIn(max);
← 上一条:怎么用JAVA编写一个程序,从用户输入的三个 下一条:怎么判断自己喜不喜欢一个人 →