C++编程题!!急求答案

2024-12-25 07:17:44
推荐回答(1个)
回答1:

#include "iostream.h"
int gongyue(int a,int b)
{
if(a {
int t;
t=a;
a=b;
b=t;
}
int c;
while (a%b!=0)
{
c=a%b;
a=b;
b=c;
}
return b;
}
int gongbei(int a,int b)
{
return (a*b/gongyue(a,b));
}
main()
{
int x,y;
cin>>x>>y;
cout< cout< return 0;
}