MCQs > IT & Programming > Kotlin > Which code snippet correctly shows a for loop using a range to display "1 2 3 4 5 6"?

Kotlin MCQs

Which code snippet correctly shows a for loop using a range to display "1 2 3 4 5 6"?

Answer

Correct Answer: for(z in 1..6) print("$z ")

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Kotlin Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it