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

You would like to print each score on its own line with its cardinal position. Without using var or val, which method allows iteration with both the value and its position?
fun main() {
  val highScores = listOf(4000, 2000, 10200, 12000, 9030)
}

Answer & Solution
Correct Answer: Option A
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.