What do you want to save?
Add Code snippet
New code examples
-
C++ 2022-03-03 05:00:01
how to find hcf in c++
// C++ program to find GCD of two numbers #include <iostream> using namespace std; // 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); } // Driver program to test above ... Add solution