| 15 | } |
| 16 | |
| 17 | int main4() |
| 18 | { |
| 19 | cout << "\t\t\t***Program to calculate the G.C.D for two integers using recursion.***" << endl; |
| 20 | cout << "Please enter two integers: " << endl; |
| 21 | int x, y; |
| 22 | cin >> x >> y; |
| 23 | cout << "The G.C.D of " << x << "and " << y << " is " << gcd(x, y); // calling function in the main function |
| 24 | return 0; |
| 25 | } |