Fixed my old formatting and patched things that were left as-is due to burnout and laziness

This commit is contained in:
2024-12-06 15:14:33 +03:00
parent 02068890a5
commit 69d40c2dfb
7 changed files with 85 additions and 71 deletions

View File

@@ -1,5 +1,4 @@
#include <iostream>
using namespace std;
int gcd_recur(int n1, int n2)
{
@@ -20,8 +19,11 @@ int gcd_recur(int n1, int n2)
int main()
{
setlocale(LC_ALL, "Russian");
int a, b;
cin >> a >> b;
cout << gcd_recur(a, b);
}
std::cout << "Введите два числа для определения НОД: ";
std::cin >> a >> b;
std::cout << "НОД: " << gcd_recur(a, b) << std::endl;
}