// recursive gcd calculation #include using namespace std; int gcd(int x, int y) { if (x % y == 0) return y; else return gcd(y, x % y); } int main() { int x,y; cout << "Ingresa dos numeros enteros positivos: "; cin >> x >> y; cout << "El GCD de " << x << " y " << y << " es: " << gcd(x,y); return 0; }