有两个int 变量A,B,不使用if. switch ?: 等判断形式,输出两个中的最大数: int max = ((a+b)+abs(a-b)) / 2 ; int min = ((a+b)-abs(a-b)) / 2 ;