What is printed by the following piece of code?
int a = 3; int b = -2; if((a>0)&&(b>0)){ if (a>b) { System.out.println("A"); } else { System.out.println("B"); } } else if ((b<0)||(a<0)) { System.out.println("C"); } else { System.out.println("D"); }
B
Nothing is printed
C
D
A
Answers
Answered by
0
nothing is printed in the following piece of code
Similar questions