From c201b4942e1e7138fcefc6344e7fb7367d24ead3 Mon Sep 17 00:00:00 2001 From: 24_PolujanovVE <24_PolujanovVE@iux.local> Date: Fri, 27 Feb 2026 16:31:57 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D0=9D?= =?UTF-8?q?=D0=9E=D0=94O?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- naibolshiy_obchiy_delitel.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 naibolshiy_obchiy_delitel.sh diff --git a/naibolshiy_obchiy_delitel.sh b/naibolshiy_obchiy_delitel.sh new file mode 100755 index 0000000..c3e3e23 --- /dev/null +++ b/naibolshiy_obchiy_delitel.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +a=$1 +b=$2 + +while [ $b -ne 0 ]; do + x=$((a % b)) + a=$b + b=$x +done +echo $a