Добавление ПР 2 по сис.прог.

This commit is contained in:
2026-09-24 13:26:54 +03:00
parent e020521a35
commit 10492a4133
18 changed files with 176 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
unsigned long factorial(int n) {
unsigned long res = 1;
for (int i = 2; i <= n; ++i) {
res *= i;
}
return res;
}