A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
10
Task/Integer-sequence/Lua/integer-sequence.lua
Normal file
10
Task/Integer-sequence/Lua/integer-sequence.lua
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue