public class Demo3{
public static void main(String[] args){
int a=3,b=5,c=12;
int max = 0;
/*
if(a>b){
if(a>c){
max = a;
}else{
max = c;
}
}else{
if(b>c){
max = b;
}else{
max = c;
}
}*/
max = a;
if(max <b ) max = b;
if(max <c ) max = c;
System.out.println("三个整数中最大的那个是" + max);
}
}