public class Excise_Max {
public static void main(String[] args) {
//从控制台接受三个数值,比较三个数值中的最大值
System.out.println("请输入三个数值");
Scanner input = new Scanner(System.in);
int a = input.nextInt();
int b = input.nextInt();
int c = input.nextInt();
int max1 = a > b ? a : b;
int max2 = max1 > c ? max1 : c;
System.out.println(max2);
}
}