lua repeat until code example
Example 1: repeat until in lua
repeat
statement(s)
until( condition )
Example 2: repeat until lua
-- Prints all square numbers up to 100
c = 1
repeat
print(c .. " squared is " .. c*c)
c = c + 1
until c == 101
repeat
statement(s)
until( condition )
-- Prints all square numbers up to 100
c = 1
repeat
print(c .. " squared is " .. c*c)
c = c + 1
until c == 101