+ 1
What is the output of the following code? int a = 11; int b = 12; int c = 40; if (a > 100 || b > 3) { System.out.println(a);
I know the answer is '11' but how? Why 'b' is not the answer?
3 Antworten
+ 16
if (11 > 100 || 12 > 3)
if (false || true)
if (true)
System.out.println(a); // 11
0
I didn't see how to print c
0
11