Swift - Loops
Which of the following shows the correct way to write a
while loop in Swift that prints numbers from 1 to 3?while loop in Swift that prints numbers from 1 to 3?var i = 1 before the loop.while i <= 3 to loop until 3.i by 1 each iteration with i += 1.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions