7 points · by shiroyasha23 · 11y ago · 1 comment
#!/bin/sh a=$1 b=$2 # base case if [ $b -eq 0 ] then echo $a exit fi echo $(./gcd.sh $b $(($a % $b)))