for i in 1...3 {
if i == 2 {
continue
}
else{
print(i)
}
}
//output: 1, 3
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)")
}
for i in 1...5 {
if i == 3 {
continue
}
print(i)
}
// program to print odd numbers from 1 to 10
var num = 0
while num <= 10{
num += 1
if (num % 2) == 0 {
continue
}
print("(num)")
}