Created
May 9, 2016 19:59
-
-
Save shtakai/27af8733bea0643ab528afb1694dc83c to your computer and use it in GitHub Desktop.
This file contains 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
require 'pp' | |
def recursive(n) | |
n == 1 ? 1 : n*recursive(n-1) | |
end | |
pp recursive(7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment