Fundamentals12 / 15
Up next

downTo and step

fun main() {
    // walk down from 10 to 1 in steps of 3
    for (i in 10 downTo 1 step 3) print("$i ")
    println()
}
What you're solving

count backwards or skip values