摘要: #include using namespace std; int main() { int m,n,a,b,m1; cout > m >> n; if(m>n) { a=m; b=n; } else { a=n; b=m; } while(m1!=0) { m1=a%b; a=b; b=m1; } cout << "最大公约数=" << a<<endl; co... 阅读全文
posted @ 2019-06-21 11:10 寂寞致幻 阅读(5322) 评论(2) 推荐(0) 编辑