Skip to content

Instantly share code, notes, and snippets.

@masui
Created May 6, 2012 10:51
Show Gist options
  • Save masui/2621613 to your computer and use it in GitHub Desktop.
Save masui/2621613 to your computer and use it in GitHub Desktop.
def fact(n)
n > 1 ? n * fact(n-1) : 1
end
puts fact(10000000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment