Q284
What is the output of the following code? fun main() val list = listOf(1, 2, 3, 4, 5) for (num in list) println(num)
A.
1 2 2
B.
1 2 3 4 5
AnswerC.
5 4 3 2 1
D.
3 3 3 3
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board