#include
using namespace std;
int f(int m,int n) //定义函数求最大公约数
{int t,r;
if(m>n)
{t=n;n=m;m=t;}
while(m!=0)
{r=n%m;n=m;m=r;}
return n;}
int k(int a,int b) //定义函数求最小公倍数
{int t,p,r,z;
if(a{t=a;a=b;b=t;}
p=a*b;
while(b!=0)
{r=a%b;a=b;b=r;}
z=p/b;
return z;}
int main ()
{int x,y;
cout<<"输入两个数:";
cin>>x>>y;
cout<<"这两个数的最大公约数是:"<
}
http://zhidao.baidu.com/question/22677595.html?fr=qrl3
http://zhidao.baidu.com/question/696310.html?fr=qrl3