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

This commit is contained in:
Ermakov
2026-02-28 08:34:09 +03:00
parent 49aeb710f3
commit 66b5b40ae8
2 changed files with 37 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
nok_result=$("$SCRIPT_DIR/script_NOK.sh" "$num1" "$num2")
echo "НОК($num1, $num2) = $nok_result"