While Loop
var a = 0
while (a < 10) { print(a) a += 1}
Simple while loop that has a variable a starting at 0, and incrementing by one until its bigger than 10.
var a = 0
while (a < 10) { print(a) a += 1}
Simple while loop that has a variable a starting at 0, and incrementing by one until its bigger than 10.