Kotlin - Loops and Ranges
What is the output of the following Kotlin code?
for (i in 8 downTo 2 step 3) {
print("$i ")
}for (i in 8 downTo 2 step 3) {
print("$i ")
}downTo with ..15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions