The same results

Report a typo

Choose two loops that produce the same result.

a)

int i = 0;
while (i < 10) {
    System.out.print(i);
    if (i == 5) {
        break;
    }
    i++;
}

b)

int j = 0;
while (j < 10) {
    j++;
    if (j == 5) {
        continue;
    }
    System.out.print(j);
}

c)

for (int k = 0; k < 10; k++) {
    if (k > 5) {
        continue;
    }
    System.out.print(k);
}
Select one or more options from the list
___

Create a free account to access the full topic