feat: добавлен скрипт НОД и интерактивный main

This commit is contained in:
Morozov
2026-02-28 08:32:06 +03:00
parent 49aeb710f3
commit ea75c93356
2 changed files with 30 additions and 0 deletions

13
main.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "Введите первое число:"
read num1
echo "Введите второе число:"
read num2
nod_result=$("$SCRIPT_DIR/script_NOD.sh" "$num1" "$num2")
echo "НОД($num1, $num2) = $nod_result"