RosettaCodeData/Task/Integer-sequence/Lua/integer-sequence.lua
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

10 lines
282 B
Lua

i = 1
-- in the event that the number inadvertently wraps around,
-- stop looping - this is unlikely with Lua's default underlying
-- number type (double), but on platform without double
-- the C type used for numbers can be changed
while i > 0 do
print( i )
i = i + 1
end