Kotlin - Loops and Ranges
Identify the error in this Kotlin code:
repeat(3)
println("Hi")repeat(3)
println("Hi")repeat function expects a lambda block enclosed in curly braces after the count.println("Hi"), so it is a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions