Merge pull request 'On branch first' (#8) from first into master
Reviewed-on: #8
This commit is contained in:
13
script_GCD.sh
Normal file
13
script_GCD.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
a=$1
|
||||||
|
b=$2
|
||||||
|
|
||||||
|
while [ $b -ne 0 ]
|
||||||
|
do
|
||||||
|
temp=$b
|
||||||
|
b=$((a % b))
|
||||||
|
a=$temp
|
||||||
|
done
|
||||||
|
|
||||||
|
echo $a
|
||||||
Reference in New Issue
Block a user