What does the following code print if the variable a is 2?
if (a <= 0) {
if(a == 0) {
System.out.print("1 ");
}
else {
System.out.print("2 ");
}
}
System.out.print("3 ");What does the following code print if the variable a is 2?
if (a <= 0) {
if(a == 0) {
System.out.print("1 ");
}
else {
System.out.print("2 ");
}
}
System.out.print("3 ");Create a free account to access the full topic