Skip to content

Instantly share code, notes, and snippets.

@madelinecr
Created April 23, 2011 02:12
Show Gist options
  • Save madelinecr/938168 to your computer and use it in GitHub Desktop.
Save madelinecr/938168 to your computer and use it in GitHub Desktop.
def fib(x)
a,b = 0,1
x.times do
b,a=a,b+a
puts b
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment