From 406be36d477655917eea1ee4e69f469f40fb930e Mon Sep 17 00:00:00 2001 From: 24_MokanGV <24_MokanGV@iux.local> Date: Sat, 28 Feb 2026 11:22:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20main.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.sh b/main.sh index 916b7cd..8c5a6d1 100644 --- a/main.sh +++ b/main.sh @@ -1,6 +1,8 @@ #!/bin/bash if [ $# -ne 2 ]; then + echo "Использование: $0 <число1> <число2>" + echo "Пример: $0 12 18" exit 1 fi @@ -12,11 +14,11 @@ fi num1=$1 num2=$2 +echo "Вычисление для чисел: $num1 и $num2" source ./nod.sh source ./nok.sh - gcd=$(gcd $num1 $num2) echo "НОД($num1, $num2) = $gcd"