Skip to content

Instantly share code, notes, and snippets.

@stomatocode
Created June 26, 2013 17:48
Show Gist options
  • Save stomatocode/5869637 to your computer and use it in GitHub Desktop.
Save stomatocode/5869637 to your computer and use it in GitHub Desktop.
def factorial_iterative(number)
until number == 1
number *= number - 1
number -= 1
p number
end
fib_num
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment