int findGCD(int a, int b) {if (b == 0)return a;return findGCD(b, a % b);}
int findGCD(int a, int b, int c, int d) {int temp = findGCD(a, b);temp = findGCD(temp, c);return findGCD(temp, d);}
int main() {int num1, num2, num3, num4;
}
int findGCD(int a, int b) {
if (b == 0)
return a;
return findGCD(b, a % b);
}
int findGCD(int a, int b, int c, int d) {
int temp = findGCD(a, b);
temp = findGCD(temp, c);
return findGCD(temp, d);
}
int main() {
std::cout << "Enter four natural numbers: ";int num1, num2, num3, num4;
std::cin >> num1 >> num2 >> num3 >> num4;
int gcd = findGCD(num1, num2, num3, num4);
std::cout << "The Greatest Common Divisor is: " << gcd << std::endl;
return 0;
}