do while loop swift code example
Example: swift do while
var x = 0;
while x < 10 {
print "\(x)" //prints x until x < 10 evaluates to false
x = x + 1
}
var x = 0;
while x < 10 {
print "\(x)" //prints x until x < 10 evaluates to false
x = x + 1
}