Поменял переменные

This commit is contained in:
2026-02-27 17:10:21 +03:00
parent 7f73789e3e
commit 805e426a36

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