Which of the values below will not be printed to theconsole when this code is executed?
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 2; j++) {
if (i == j) {
continue;
}
System.out.println(“i= ” + i + ” j = ” + j);
}
}
a.
i = 2 j = 0
b.
i = 0 j = 1
c.
i = 1 j = 1
d.
i = 2 j = 1
e.
i = 1 j = 0
Solution
Answer:-
c) i = 1 j = 1
it will not prnted as output