0
tell me the answer
int a = 11; int b = 12; int c = 40; if (a > 100 || b > 3) { System.out.println(a); } else { System.out.println(c); } What is the output????
3 odpowiedzi
+ 2
output: 11
'||' is used for 'or'
though a is not greater than 100 but b is greater than 3
+ 2
Navjyoth Kannottil You can also check in Sololearn Code Playground.
+ 1
AJ #Infinity Love yess, you are correct... Navjyoth Kannottil why are you asking it in q/a...