Files
SkvortsovShubin/script_GCD.sh
21_SkvortsovKV 5ee6e57d86 first exe
2026-02-28 15:14:33 +03:00

9 lines
97 B
Bash
Executable File

a=$1
b=$2
while [ $b -ne 0 ]; do
remainder=$((a % b))
a=$b
b=$remainder
done
echo $a