Created
February 2, 2016 21:18
-
-
Save eibrahim/f9796ebabc433c0bc47b to your computer and use it in GitHub Desktop.
Greatest common denominator
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
def gcd x,0 do x end | |
def gcd x,y do gcd y, rem(x,y) end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment