RosettaCodeData/Task/Integer-sequence/Lua/integer-sequence.lua

11 lines
282 B
Lua
Raw Normal View History

2013-04-10 21:29:02 -07:00
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