Kotlin Tutorial

Kotlin Loops

Loops

Loops let you repeat blocks of code efficiently.

for (i in 0 until 3) println(i)
Try it Yourself
Run this KOTLIN example in your local environment or course sandbox.