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

What is the output of the following code?
fun main() {
    val num = 15
    when (num) {
        10 -> println("Ten")
        15 -> println("Fifteen")
        20 -> println("Twenty")
        else -> println("Other")
    }
}

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.