Swift - Loops
Identify the error in this Swift code snippet:
for i in 1...5 {
if i == 3 {
continue()
}
print(i)
}for i in 1...5 {
if i == 3 {
continue()
}
print(i)
}continue is a keyword and must not have parentheses.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions