Created
September 27, 2016 19:17
-
-
Save shivamMg/5c546de597cf38fdac0df8b45725ca6f to your computer and use it in GitHub Desktop.
EuclideanGCD
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 gcd(a, b): | |
while b != 0: | |
temp = b | |
b = a % b | |
a = temp | |
return a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment