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

Co-authored-by: Morozov
Reviewed-on: #1
This commit is contained in:
2026-02-28 08:48:53 +03:00
parent 49aeb710f3
commit f4c21e017b
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"