Repeat until lua

This article is tagged with: Repeat until lua and lua

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

This article is tagged with: Repeat until lua and lua