解题思路:打擂台
注意事项: 注意判断
参考代码:
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
while (scanner.hasNext()) {
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
int max = a;
if (b > max && c < b) {
max = b;
} else {
max = c;
}
System.out.println(max);
break;
}
}
0.0分
0 人评分