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