Skip to content

Instantly share code, notes, and snippets.

@seanreed1111
Last active December 31, 2015 17:59
Show Gist options
  • Save seanreed1111/8024074 to your computer and use it in GitHub Desktop.
Save seanreed1111/8024074 to your computer and use it in GitHub Desktop.
Fibonacci Sequence generator
def fibo(n)
if n < 2
n
else
fibo(n-1) + fibo(n-2)
end
end
puts fibo(8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment