Loops
for loop
for loopExample
with math fixed from std:math
with console from std:io
for(var i int in range(0,10) /*'range' returns an array with the number 0 to 10*/)
console.out(i)
end
let fruits string[] = {"Apple", "Banana", "Mango", "Kiwi"}
for(var fruit in fruits)
console.out("{} is very healthy".format(fruit))
endfor(_ in range(0,10))
console.out("")
endExample
while loop
while loopExample
stop and skip statements
stop and skip statementsExample
Example
Last updated