/*键盘分别输入两只老虎的体重,判断两只老虎的体重是否相同*/
Scanner sc=new Scanner(System.in);
System.out.println("请输入第一只老虎的体重");
Int weight1=sc.nexInt();
System.out.println("请输入第二只老虎的体重");
int weight2=sc.nexInt();
//不想提现true和false,就用相同和不同来代替
//Syastem.out.println(weight1==weight2);
String result=weight1==weight2?"相同":"不同";
System.out.println(result);
/*三个和尚身高不同,已知身高分别为150cm;210cm;165cm;用程序来获取这三个和尚的最高身高*/
//先把身高赋值给变量
int height1=150;
int height2=210;
int height3=165;
//先比较第一个和第二个和尚,再拿着结果比较第三个和尚
int temp=height1>height2?height1:height2;
int max=temp>height3?temp:height3;
System.out.println(max);