最大公约数(欧几里得算法/辗转相除法)

     static int gcd(int a,int b){
           return b==0?a:gcd(b,a%b);
        }
原文地址:https://www.cnblogs.com/qdu-lkc/p/12259884.html