Рабочий файл: НОК

This commit is contained in:
2026-02-27 12:50:17 +03:00
parent 4a9bf54acc
commit 7f73789e3e

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