Menu
×
×
Correct!

Exercise:

Print i as long as i is less than 6.

i <- 1 while (i < 6) { print(i) i <- i + 1 }

Not Correct

Click here to try again.

Correct!

Next ❯
i <- 1
 (i < 6) {
  print(i)
  i <- i + 1
}

  
  
  




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: