Kotlin - Operators and Expressions
Identify the error in this Kotlin code snippet:
for (i in 1..5)
if (i in 3..1) println(i)for (i in 1..5)
if (i in 3..1) println(i)i in 3..1 is always false for any i, so nothing prints. No syntax or runtime errors occur.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions