ExamVeda
Login
Home
This question belongs to Computer Science Kotlin Program
Kotlin Program
?

What is the output of the following code?
fun main() {
    val list = listOf(1, 2, 3, 4, 5)
    for (num in list) {
        println(num)
    }
}

Answer & Solution
Correct Answer: Option B
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.