+ 1
int a = 11; int b = 12; int c = 40; if (a > 100 || b > 3) { System.out.println(a); } else { System.out.println(c); } 11
Bunu anlayamadım bana izah edebilir misiniz?
3 Answers
+ 3
It says if a is greater than 100 or b is greater than 3 then print a ,else print c
So a is not greater than 100 but b is greater than 3 so if condition evaluates to True and a is printed
0
11