Скрипт с НОД готов

This commit is contained in:
Vlad24
2026-02-27 13:01:15 +03:00
parent 15864bfa8f
commit fa4f2282f9

9
GCD.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
a=$1
b=$2
while [ $b -ne 0 ]; do
r=$((a % b))
a=$b
b=$r
done
echo $a