Created
July 29, 2017 15:49
-
-
Save schweigert/76d70a5ead831525877d8e480c62f59f 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
| def fat n | |
| return 1 if n == 0 | |
| return n*fat(n-1) | |
| end | |
| def sfat n | |
| return 1 if n == 0 | |
| return fat(n)*sfat(n-1) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment