Created
June 19, 2015 13:14
-
-
Save SecretDeveloper/6c426f8993873f1a05f7 to your computer and use it in GitHub Desktop.
Greatest Common Denominator using Euclidian Algorithm
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
// Greatest Common Denominator using Euclidian Algorithm | |
int gcd(int a, int b) | |
{ | |
return b==0 ? a : gcd(b, a % b); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment