Kotlin - Loops and Ranges
Which of the following is the correct syntax for a Kotlin
for loop that counts from 2 to 10 stepping by 2?for loop that counts from 2 to 10 stepping by 2?2..10 and stepping by 2 uses step 2.for (i in 2..10 step 2). Others misuse downTo or omit step value.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions