Vidyalelo
Java Programming · Q87

Operators

Programming · Java Programming · question 87

Q87

What would be the output of the following code snippet if variable a=10? if(a<=0) if(a==0) System.out.println("1 "); else System.out.println("2 "); System.out.println("3 ");

A.
1 2
B.
2 3
C.
1 3
D.
3
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board