求最大公约数,辗转相除法

int zdg(int a,int b){
    return b==0?a:zdg(b,a%b);
}

猜你喜欢

转载自blog.csdn.net/cheung99857/article/details/81068482
今日推荐