#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>intmain(){int a =0, b =0, c =0;scanf("%d %d",&a,&b);int mul = a * b;while(c = a % b)//为0证明有最大公因数出现{
a = b;
b = c;}printf("%d ", mul / b);return0;}
#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>intmain(){int a =0, b =0, k=0;scanf("%d %d",&a,&b);
k= a > b ? a : b;//求最大整数while(1){if(k % a ==0&& k % b ==0)//寻找同时被整除的k{printf("%d ",k);//为真,打印break;}
k++;//为假,继续递增即可}return0;}