TinyLua
Lua Interpreter
Type your Lua code below:
local total = 0 for i = 1, 10 do total = total + i end print("The sum of 1 to 10 is: " .. total)
Run Lua Code
Output: