辗转相除:
//辗转相除
int gcd(int a,int b){
int mod = 0;
while(b > 0){
mod = a;
a = b;
b = mod % b;
}
return a;
}
//辗转相除-递归
int g
辗转相除:
//辗转相除
int gcd(int a,int b){
int mod = 0;
while(b > 0){
mod = a;
a = b;
b = mod % b;
}
return a;
}
//辗转相除-递归
int g