Skip to content

Instantly share code, notes, and snippets.

@yuuki
Created August 6, 2012 15:49
Show Gist options
  • Save yuuki/3275800 to your computer and use it in GitHub Desktop.
Save yuuki/3275800 to your computer and use it in GitHub Desktop.
def fact(n)
n == 1 and return 1
n*fact(n-1)
end
puts fact(40) / fact(20) / fact(20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment