求解释:为什么运行不了?
#include<stdio.h> int zgy(int,int);
int zgb(int,int);
void main()
{
int a,b,x,y;
printf("Input your number\n");
scanf("%d%d",&a,&b);
x=zgy(a,b);
y=zgb(a,b);
printf("最大公约数%d,最小公倍数%d\n",x,y);
}
int zgy(int a,int b)
{
int c,m;
if(a<b)
{
m=a;
a=b;
b=m;
}
c=a%b;
while(c!=0)
{
a=b;b=c;c=a%b;
}
return(b);
}
int zgb(int a,int b)
{
int y;
y=a*b/zgy(a,b);
return(y);
}