xxxxxxxxxx
for i in 1...5 {
if i == 3 {
continue
}
print(i)
}
xxxxxxxxxx
var songs = ["Shake it Off", "You Belong with Me", "Look What You Made Me Do"]
for song in songs {
if song == "You Belong with Me" {
continue
}
print("My favorite song is \(song)")
}
xxxxxxxxxx
// program to print odd numbers from 1 to 10
var num = 0
while num <= 10{
num += 1
if (num % 2) == 0 {
continue
}
print("\(num)")
}