pantry/projects/luajit.org/test.lua
Andrew 6285966ee7
luajit.org (#2939)
* luajit.org

* ROLLING ver

* wip

* maybe LUAJIT_PATH

* LUA_PATH

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-09-06 16:30:23 -04:00

11 lines
211 B
Lua

function fibonacci(n)
if n <= 0 then
return 0
elseif n == 1 then
return 1
else
return fibonacci(n - 1) + fibonacci(n - 2)
end
end
print("Fibonacci(10) =", fibonacci(10))