feature #1

Merged
25_BublikKM merged 3 commits from feature into master 2026-03-23 00:46:15 +03:00
Showing only changes of commit 1579c71032 - Show all commits

14
script_GCD.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# GCD
a="$1"
b="$2"
while [ $a -ne 0 ] && [ $b -ne 0 ]; do
if [ $a -gt $b ]; then
a=$((a % b))
else
b=$((b % a))
fi
done
echo $((a + b))