int a = 11; int b = 12; int c = 40; if (a > 100 || b > 3) { System.out.println(a); } else { System.out.println(c); } | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

int a = 11; int b = 12; int c = 40; if (a > 100 || b > 3) { System.out.println(a); } else { System.out.println(c); }

the right answer is a i get wrong answer when i answered a

23rd Feb 2017, 12:26 PM
Mohammad Ramadany
Mohammad Ramadany - avatar
1 Answer
+ 1
If by 'a' you mean the answer is that it prints '11' then you're correct, but if you mean that it prints 'a' then you're incorrect.
23rd Feb 2017, 12:36 PM
ChaoticDawg
ChaoticDawg - avatar