-- Program to print the number "x" on screen, 10 times in Lua
for x = 1,10,1
do
print(x) -- prints the number "x" on screen 10 times
-- such as:
-- 1
-- 2
-- 3
-- ...
end
print("\nDone!")
To embed this project on your website, copy the following code and paste it into your website's HTML: