Need Assistance?

support@tutorialshub.in

Control Flow & Loops

for Loops (in, until, downTo, step)

ADVERTISEMENT
Kotlin Free Lesson
5 min read
ADVERTISEMENT

Loop cleanly over ranges: 1..5 (1 to 5 inclusive), 0 until 5 or 0..<5 (0 to 4), 5 downTo 1 (reverse), and step 2.

ADVERTISEMENT
Hi, I'm Tuby! Here to help you