5 Commits

Author SHA1 Message Date
1772a3c645 . 2026-02-28 15:03:37 +03:00
ae88fcad92 Merge pull request 'Конечный файл' (#2) from Feature into main
Reviewed-on: #2
2026-02-28 14:44:30 +03:00
2e71ac2a79 Конечный файл 2026-02-28 14:41:31 +03:00
46deb29580 Merge pull request 'feature_Slava' (#1) from feature_Slava into main
Reviewed-on: #1
2026-02-27 16:56:44 +03:00
c201b4942e сделал НОДO 2026-02-27 16:31:57 +03:00
2 changed files with 17 additions and 0 deletions

6
file.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
nod=$(./naibolshiy_obchiy_delitel.sh $1 $2)
nok=$(./NOK.sh $1 $2)
echo 'НОК:' $nok
echo 'НОД:' $nod

11
naibolshiy_obchiy_delitel.sh Executable file
View File

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