最简单的c语言编程答:很多程序都是非常简单的:1.输入2个正整数m和n,求其最大公约数和最小公倍数 include<stdio.h> include<math.h> int main(){ int m,n,p,q,s,r;printf("请输入两个正整数;m,n\n");scanf("%d,%d",&m,&n);s=m*n;if(m<n){ p=m;m=n;n=p;} printf("%d\t%d\n",m,n...
求简单C语言程序代码!答:输入2个正整数m和n,求其最大公约数和最小公倍数 include include int main()int m,n,p,q,s,r;printf("请输入两个正整数;m,n\n");scanf("%d,%d",&m,&n);include<stdio.h> main()int a,b,t=0;scanf("%d %d",&a,&b);if (a...