Kotlin provides 'rangeTo', 'until', 'downTo', and 'step' for creating ranges.
← Kotlin theorytheory 0/50 · 0%
Fundamentals · easy
11. Ranges and Loops
Iterating with ranges.
Check your understanding
1. 1..5 includes 5?
2. Keyword for exclusive end?
Iterating with ranges.
Kotlin provides 'rangeTo', 'until', 'downTo', and 'step' for creating ranges.
1. 1..5 includes 5?
2. Keyword for exclusive end?