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????

27th May 2020, 8:22 AM
Navjyoth Kannottil
Navjyoth Kannottil - avatar
3 Respostas
+ 2
output: 11 '||' is used for 'or' though a is not greater than 100 but b is greater than 3
27th May 2020, 8:27 AM
Namit Jain
Namit Jain - avatar
+ 2
Navjyoth Kannottil You can also check in Sololearn Code Playground.
27th May 2020, 8:40 AM
A͢J
A͢J - avatar
+ 1
AJ #Infinity Love yess, you are correct... Navjyoth Kannottil why are you asking it in q/a...
27th May 2020, 8:46 AM
Namit Jain
Namit Jain - avatar