Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save SecretDeveloper/6c426f8993873f1a05f7 to your computer and use it in GitHub Desktop.
Save SecretDeveloper/6c426f8993873f1a05f7 to your computer and use it in GitHub Desktop.
Greatest Common Denominator using Euclidian Algorithm
// 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