Code review

Report a typo

Imagine that you need to do a code review and predict without running a program what will be printed:

fun increment(count: Int) = count + 1

fun main() {
    var count = 0
    while (count < 5) {
        increment(count)
    }
    println(count)
}

What will be the output of the program?

Select one option from the list
___

Create a free account to access the full topic