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++ continue } println(i) i++ }

Not Correct

Click here to try again.

Correct!

Next ❯
var i = 0
while (i < 10) {
  if (i == 4) {
    i++
    
  }
  println(i)
  i++
}

    
  




Log in to keep your progress
Sign up to keep your progress

Completed 0 of 39 Exercises:

KOTLIN Syntax
KOTLIN Variables
KOTLIN Data Types
KOTLIN Operators
KOTLIN Strings
KOTLIN Booleans
KOTLIN If...Else
KOTLIN While Loops
KOTLIN Arrays
KOTLIN For Loops
KOTLIN Functions
KOTLIN Classes

×

Reset the Score?

This will reset the score of ALL 39 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 39 KOTLIN exercises.

Share your score: