摘要: 问题: 求两个正整数的最小公倍数 源代码: #include <stdio.h>int main(){ int a,b; scanf("%d %d",&a,&b); int m=(a>b?a:b); while(1) { if(m%a==0&&m%b==0) { break; } m++; } pr 阅读全文
posted @ 2023-05-23 22:42 皮卡丘和杰尼龟 阅读(12) 评论(0) 推荐(0)