package hello;
import java.util.Scanner;
public class hello {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a;
int b;
int c;
int z;
a = in.nextInt();
b = in.nextInt();
c = in.nextInt();
if(a>b){
if(a>c){
z = a;
}
else{
z = c;
}
}
else{
if(b>c){
z = b;
}
else{
z = c;
}
}
System.out.println(z);
}
}
-------------------------------------------------
规则。
时间: 2024-10-11 22:42:41