import java.util.Scanner;
public class MMM {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int a,b,c,max;
a=scanner.nextInt();
b=scanner.nextInt();
c=scanner.nextInt();
max=(a>c?a:c)>b?(a>c?a:c):b;
System.out.println(max);
}
}
获取三个整数中的最大值(用三元运算符)。
最新推荐文章于 2024-06-07 08:25:31 发布