From 7b0200c5410b98c44c7d61bbd7ba2f10c9a14469 Mon Sep 17 00:00:00 2001 From: Kolomiets Dan <24_KolomietsDS@iux.local> Date: Fri, 27 Feb 2026 19:02:36 +0300 Subject: [PATCH] On branch first Your branch is up to date with 'origin/first'. Changes to be committed: new file: script_GCD.sh --- script_GCD.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 script_GCD.sh diff --git a/script_GCD.sh b/script_GCD.sh new file mode 100644 index 0000000..cd35d33 --- /dev/null +++ b/script_GCD.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +a=$1 +b=$2 + +while [ $b -ne 0 ] +do + temp=$b + b=$((a % b)) + a=$temp +done + +echo $a