Created
July 25, 2017 20:06
-
-
Save schweigert/2530b6691c779d239c1e7d51cfa1ff2c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # >> jruby fat.rb | |
| def fat n | |
| return 1 if n == 0 | |
| return n*fat(n-1) | |
| end | |
| puts fat(7000) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment