다음 JAVA 프로그램을 실행했을 때 출력되는 결과는?
public class ovr {
public static void main(String[ ] args) {
int a = 1, b = 2, c = 3, d = 4;
int mx, mn;
mx = a < b ? b : a;
if (mx == 1) {
mn = a > mx ? b : a;
}
else {
mn = b < mx ? d : c;
}
System.out.println(mn);
}
}- 11
- 22
- 33
- 44
꿈라CBT