最新回答 / 青無
#include <stdlib.h>int main(){ int a,b,t;scanf("%d %d",&a,&b);int m=a,n=b;while(a%b!=0){t=a%b;a=b;b=t;}printf("最大公约数是%d\n",b);printf("最大公倍数是%d\n",m*n/b);return 0; }
2020-11-17