package com.lovecoding.day03;

public class Test07_SuanShu_SanYuan_ex {

    public static void main(String[] args) {
        //求三个整数的最大值
        int a=65, b=21 ,c=22;

//        int i = (a > b) ? a : b;
//        int max = (i > c) ? i : c;
//
//        System.out.println(max);

        //简写
        int max = (((a > b) ? a : b) > c) ? ((a > b) ? a : b)  : c;
        System.out.println(max);
    }
}
