Kotlin - Loops and Ranges
What does the following Kotlin code do?
for (i in 1..5) { println(i) }for (i in 1..5) { println(i) }1..5 creates a range including numbers 1, 2, 3, 4, and 5.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions