[Java] 纯文本查看 复制代码 public class Test {
public static void main(String[] args) {
System.out.println("Please enter three numbers:\n");
Scanner s = new Scanner(System.in);
int a = s.nextInt();
int b = s.nextInt();
int c = s.nextInt();
if (a > b && a > c) {
System.out.println(a);
} else if (c > a && c > b) {
System.out.println(c);
} else
System.out.println(b);
}
} |