Files
2026-03-31 18:02:10 +03:00

11 lines
97 B
Bash

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