Explore Library
KotlinIntroduction & Core Concepts

50 items

Code QuizBeginner

C-style for loop

Recognize that Kotlin does not use C-style for loops.

Codekotlin
fun main() {
    for (i = 0; i < 5; i++) {
        println(i)
    }
}

What is the bug in this code?