first exe

This commit is contained in:
21_SkvortsovKV
2026-02-28 15:14:33 +03:00
parent e841a6a178
commit 5ee6e57d86
3 changed files with 30 additions and 0 deletions

8
script_GCD.sh Executable file
View File

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