diff options
Diffstat (limited to 'Euclid.cpp')
-rw-r--r-- | Euclid.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/Euclid.cpp b/Euclid.cpp deleted file mode 100644 index b2daaaa..0000000 --- a/Euclid.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include <iostream> -#include <cmath> - -using namespace std; - -int mgcd(int a, int b) { - if(a % b != 0) { - mgcd(b, a % b); - } else { - cout << "\nGreatest common divisor: " << b << endl; - } -} - -int main() { - int x, y; - cout << "Enter 2 numbers: "; - cin >> x >> y; - mgcd(x, y); -} |