2 Commits

Author SHA1 Message Date
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 14 additions and 3 deletions

6
NOK.sh
View File

@@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
a=$1 a=$1
cp_a=$a clone_a=$a
b=$2 b=$2
cp_b=$b clone_b=$b
while [ $b -ne 0 ]; do while [ $b -ne 0 ]; do
temp=$b temp=$b
b=$((a % b)) b=$((a % b))
a=$temp a=$temp
done done
c=$((cp_a * cp_b)) c=$((clone_a * clone_b))
d=$((c / a)) d=$((c / a))
echo $d echo $d

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