Values Printed Console Code Executed Int 0 3 Int J 0 J 2 J J Continue Systemprintln J J 2 Q37042197

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.