Files
Poetry/script_GCD.sh
Kolomiets Dan 7b0200c541 On branch first
Your branch is up to date with 'origin/first'.
 Changes to be committed:
	new file:   script_GCD.sh
2026-02-27 19:02:36 +03:00

14 lines
101 B
Bash

#!/bin/bash
a=$1
b=$2
while [ $b -ne 0 ]
do
temp=$b
b=$((a % b))
a=$temp
done
echo $a