Files
laba1/script_GCD.sh

13 lines
96 B
Bash
Executable File

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