×
×
Correct!
Use the correct keyword to skip the value of 3 in a loop.
i <- 0
while (i < 6) {
i <- i + 1
if (i == 3) {
@(4)
}
print(i)
}
i <- 0
while (i < 6) {
i <- i + 1
if (i == 3) {
next
}
print(i)
}
Not CorrectClick here to try again. Correct! |
This will reset the score of ALL 40 exercises.
Are you sure you want to continue?