swift for loop

192

how to loop swift -

for n in 1...5 {
    print(n)
}

// Output: 1 2 3 4 5

Comments

Submit
0 Comments