Menu
×
×
Correct!
Exercise:Use the correct keyword to skip the value of 4 in a loop.
var i = 0
while (i < 10) {
if (i == 4) {
i++
@(8)
}
println(i)
i++
}
var i = 0
while (i < 10) {
if (i == 4) {
i++
continue
}
println(i)
i++
}
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 39 exercises.
Are you sure you want to continue?