first exe

This commit is contained in:
21_SkvortsovKV
2026-02-28 15:14:33 +03:00
parent e841a6a178
commit 5ee6e57d86
3 changed files with 30 additions and 0 deletions

9
main.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
echo "Введите первое число:"
read num1
echo "Введите второе число:"
read num2
gcd_res=$(./script_GCD.sh $num1 $num2)
lcm_res=$(./script_LCM.sh $num1 $num2)
echo "НОД($num1, $num2) = $gcd_res"
echo "НОК($num1, $num2) = $lcm_res"