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);
}
}| 欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |