摘要: 1.输入a,b; 2.求出a,b最大公约数num; 3.最小公倍数是a*b/num; 4.输出; #include<iostream> using namespace std; int g(int a,int b){if(a<b){swap(a,b);}int t=1;while(t){t=a%b; 阅读全文
posted @ 2023-05-19 15:28 The-rich 阅读(18) 评论(0) 推荐(0)