feature_Slava #1

Merged
24_PolujanovVE merged 2 commits from feature_Slava into main 2026-02-27 16:56:45 +03:00
2 changed files with 25 additions and 0 deletions

14
NOK.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
a=$1
clone_a=$a
b=$2
clone_b=$b
while [ $b -ne 0 ]; do
temp=$b
b=$((a % b))
a=$temp
done
c=$((clone_a * clone_b))
d=$((c / a))
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