let cadence: Double = 180 var testSteps = 0 while testSteps < 10 { print("take a step") testSteps += 1 } for n in 1...5 { print(n) }var x = 0; while x < 10 { print "\(x)" //prints x until x < 10 evaluates to false x = x + 1 }for i in 0...10 { print(i) } let array = Array(0...10) //same as [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] for value in array { print(value) } // program to display numbers from 1 to 5 // initialize the variable var i = 1, n = 5 // while loop from i = 1 to 5 while (i <= n) { print(i) i = i + 1 }while (condition){ // body of loop }var counter = 0 while true { print("Counter is now \(counter)") counter += 1 if counter == 556 { break } }// create a loop statement for i in 1...3 { print("Hello, World!") }// this loop is iterated 5 times for number in 1...5 { // body of loop }// program to display 7 days of 2 weeks var weeks = 2 var i = 1 // outer while loop while (i <= weeks){ print("Week: \(i)") // inner for loop for day in 1...7{ print(" Day: \(day)") } i = i + 1 }var number = 1 while number <= 20 { print(number) number += 1 } print("Ready or not, here I come!")