Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement