Kotlin - Loops and Ranges
Find the error in this Kotlin code snippet:
for (i in 10..1 step 2) {
println(i)
}for (i in 10..1 step 2) {
println(i)
}downTo instead of .., e.g., 10 downTo 1 step 2.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions