restruct folders and base approach

This commit is contained in:
2025-03-15 12:59:23 +03:00
parent 9457d21c1e
commit 186397f52e
13 changed files with 125 additions and 76 deletions

18
src/tmp/numbers/gcd.hpp Normal file
View File

@@ -0,0 +1,18 @@
#pragma once
// Называется алгоритм Евклида
// Находит наибольший общий делитель
namespace alg
{
inline int gcd(int a, int b)
{
while (b != 0)
{
int r = a%b;
a = b;
b = r;
}
return a;
}
}