Created
December 31, 2016 12:20
-
-
Save p--q/fe6bfa1e4fd2be3d8e33fafd2e9da9be to your computer and use it in GitHub Desktop.
test2.py
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, y): | |
if y == 0: | |
return x | |
else: | |
return gcd(y, x % y) | |
print(gcd(24, 9)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment