Чета сделал

This commit is contained in:
2026-02-27 17:05:40 +03:00
parent c201b4942e
commit 1bc79f47a3
2 changed files with 3 additions and 4 deletions

6
NOK.sh
View File

@@ -1,14 +1,14 @@
#!/bin/bash #!/bin/bash
a=$1 a=$1
clone_a=$a cp_a=$a
b=$2 b=$2
clone_b=$b cp_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=$((clone_a * clone_b)) c=$((cp_a * cp_b))
d=$((c / a)) d=$((c / a))
echo $d echo $d

View File

@@ -2,7 +2,6 @@
a=$1 a=$1
b=$2 b=$2
while [ $b -ne 0 ]; do while [ $b -ne 0 ]; do
x=$((a % b)) x=$((a % b))
a=$b a=$b