diff --git a/CPP/GCD.cpp b/CPP/GCD.cpp new file mode 100644 index 000000000..2b475128a --- /dev/null +++ b/CPP/GCD.cpp @@ -0,0 +1,17 @@ + +// C++ program to find GCD of two numbers +#include + +// Recursive function to return gcd of a and b +int gcd(int a, int b){ + if (b == 0) + return a; + return gcd(b, a % b); +} + +int main(){ + int a, b; + cin>>a>>b; + cout<<"GCD of "<