Last active
July 16, 2016 17:06
-
-
Save ugwis/b13798622ab3c49c722cb483067e0cc7 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
int gcd(int a, int b){ | |
if(b==0) return a; | |
if(a < b) swap(a,b); | |
return gcd(b,a%b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment