Fixed my old formatting and patched things that were left as-is due to burnout and laziness
This commit is contained in:
10
alg_4_1.cpp
10
alg_4_1.cpp
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user