Your branch is up to date with 'origin/first'. Changes to be committed: new file: script_GCD.sh
14 lines
101 B
Bash
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
|