Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 299b647355
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (9 sloc) 0.095 kb
def fib(n)
if n < 3
1
else
fib(n - 1) + fib(n - 2)
end
end
puts fib(10)
# => 55
Jump to Line
Something went wrong with that request. Please try again.