September Morn Update
This commit is contained in:
parent
4e2d22a71d
commit
aac6731f2c
6856 changed files with 141342 additions and 21127 deletions
4
Task/Fibonacci-sequence/Lua/fibonacci-sequence-1.lua
Normal file
4
Task/Fibonacci-sequence/Lua/fibonacci-sequence-1.lua
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
--calculates the nth fibonacci number. Breaks for negative or non-integer n.
|
||||
function fibs(n)
|
||||
return n < 2 and n or fibs(n - 1) + fibs(n - 2)
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue