求最大公因数

int gcd(int a, int b){
     return a%b==0?b:gcd(b,a%b);
}
原文地址:https://www.cnblogs.com/A-Little-Nut/p/8408955.html