Skip to content

Instantly share code, notes, and snippets.

@shivamMg
Created September 27, 2016 19:17
Show Gist options
  • Save shivamMg/5c546de597cf38fdac0df8b45725ca6f to your computer and use it in GitHub Desktop.
Save shivamMg/5c546de597cf38fdac0df8b45725ca6f to your computer and use it in GitHub Desktop.
EuclideanGCD
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