include<stdio.h>void main(){int a,b,i;scanf("%d %d",&a,&b);for(i=a+b;i>1;i--){if(a%i==0&&b%i==0){printf("最大公约数为%d,最小公倍数为%d\n",i,a*b/i);return 0;}}printf("最大公约数为1,最小公倍数为%d\n",a*b);return 0;} 给你来个最简单的吧 ...