#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int gcd(int x,int y)
{
    return y==0 ? x : gcd(y,x%y);
}
int main()
{
    int a,b,lim;
    while(scanf("%d%d",&a,&b)!=EOF)
    {
        lim=(a*b)/gcd(a,b);
        printf("%d\n",lim);                        
    }
    //system("pause");
    return 0;
}

相关文章:

  • 2021-07-11
  • 2021-12-19
  • 2021-12-19
  • 2021-12-19
猜你喜欢
  • 2021-06-28
  • 2022-03-04
  • 2022-12-23
  • 2021-12-22
  • 2022-02-25
  • 2022-12-23
相关资源
相似解决方案