Merge pull request 'first' (#3) from first into master

Reviewed-on: #3
Reviewed-by: 24_GatijatovEI <24_GatijatovEI@iux.local>
This commit is contained in:
2026-02-27 18:36:53 +03:00
3 changed files with 27 additions and 0 deletions

13
NOD Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
a=$1
b=$2
while [ $b -ne 0 ]
do
temp=$b
b=$((a % b))
a=$temp
done
echo $a

13
main Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
echo "Введите первое число:"
read a
echo "Введите второе число:"
read b
gcd=$(./script_GCD.sh $a $b)
lcm=$(./script_LCM.sh $a $b)
echo "НОД = $gcd"
echo "НОК = $lcm"

1
test.txt Normal file
View File

@@ -0,0 +1 @@
hiiiii