Swift - Loops
What will be the output of this Swift code?
for i in 1...5 {
if i == 3 {
continue
}
print(i)
}for i in 1...5 {
if i == 3 {
continue
}
print(i)
}i equals 3, continue skips printing 3.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions