Swift - Loops
Find the mistake in this Swift code snippet:
let scores = [85, 90, 75, 60]
for score in scores where score > 80
print(score)
}let scores = [85, 90, 75, 60]
for score in scores where score > 80
print(score)
}for loop requires braces { } to enclose the loop body.{ after the for line is missing.for loop -> Option Bfor loop body [OK]where15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions