On Aug 2, 2014, Aditya Mahajan adit...@umich.edu wrote:
On Sat, 2 Aug 2014, luigi scarso wrote:
On Sat, Aug 2, 2014, John Kitzmiller k...@inradius.net wrote:
Here is Lua code that prints the first nine fibonacci numbers:
local function fib(n)
f={1,1}
...the Wiki entries, CLD, and tried
Here is Lua code that prints the first nine fibonacci numbers:
local function fib(n)
f={1,1}
for i=3,9 do
f[i]=f[i-1]+f[i-2]
end
return(f[n])
end
for n=1,9 do print(fib(n)) end
Here is Context+Lua that prints 3 x 3 table of the first nine natural numbers:
\starttext
On Sat, Aug 2, 2014 at 12:59 AM, John Kitzmiller k...@inradius.net wrote:
Here is Lua code that prints the first nine fibonacci numbers:
local function fib(n)
f={1,1}
for i=3,9 do
f[i]=f[i-1]+f[i-2]
end
return(f[n])
end
for n=1,9 do print(fib(n)) end
Here is Context+Lua
On Sat, 2 Aug 2014, luigi scarso wrote:
On Sat, Aug 2, 2014 at 12:59 AM, John Kitzmiller k...@inradius.net wrote:
Here is Lua code that prints the first nine fibonacci numbers:
local function fib(n)
f={1,1}
for i=3,9 do
f[i]=f[i-1]+f[i-2]
end
return(f[n])
end
for n=1,9 do