Menu
×
×
Correct!

Exercise:

Use the correct keyword to skip the value of 3 in a loop.

i <- 0 while (i < 6) { i <- i + 1 if (i == 3) { next } print(i) }

Not Correct

Click here to try again.

Correct!

Next ❯
i <- 0
while (i < 6) {
  i <- i + 1
  if (i == 3) {
    
  }
  print(i)
}

  
  
  




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

Completed 0 of 40 Exercises:

R Syntax
R Variables
R Data Types
R Math
R Strings
R Booleans
R Operators
R If...Else
R Loops
R Functions
R Data Structures

×

Reset the Score?

This will reset the score of ALL 40 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 40 R exercises.

Share your score: