for i in 1...3 {
for j in 1...3 {
if j == 2 {
continue
}
print("i = (i), j = (j)")
}
}
// outer loop
for i in 1...5 {
// codes
// inner loop
for j in 1...2 {
//codes
}
}
// Swift program to display 7 days of 2 weeks
// outer loop
for week in 1...2 {
print("Week: (week)")
// inner loop
for day in 1...7 {
print(" Day: (day)")
}
// line break after iteration of outer loop
print("")
}