摘要: 1.写两个函数,分别求两个整数的最大公约数和最小公倍数,用主函数调用这两个函数,并输出结果。两个整数由键盘输入。 #include <stdio.h> #include <math.h> int gcd(int m,int n){ int t,r; if(m<n){ t=m; m=n; n=t; } 阅读全文
posted @ 2020-10-20 20:07 薄眠抛却陈年事。 阅读(132) 评论(0) 推荐(0) 编辑