博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
求两个数的最大公约数
阅读量:4691 次
发布时间:2019-06-09

本文共 280 字,大约阅读时间需要 1 分钟。

1 #include
2 using namespace std; 3 4 int Gcd(int a,int b){ 5 if(a%b==0) return b; 6 else return Gcd(b,a%b); 7 } 8 9 int main(){10 int a,b;11 while(cin>>a>>b)12 cout<
<

 

转载于:https://www.cnblogs.com/Gzu_zb/p/9372741.html

你可能感兴趣的文章