Files
ErmakovMorozov/main.sh
2026-02-28 08:58:10 +03:00

16 lines
375 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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