帮俺挑挑错误!!
#include <stdio.h>
int agr(int m, int n);
int main(void)
{
int m,n,k,temp;
printf("enter two numbers: \n");
scanf("%d %d",&m,&n);
if (m == n) k = m;
else if (m < n)
{
temp = m;
m = n;
n = temp;
k = agr(m,n);
}
else k = agr(m,n);
printf("k = %d\n",k);
}
int agr(int m, int n)
{
int r,k;
r = m%n;
if (r == 0) k = n;
else
{
m = n;
n = r;
}
agr(m,n);
return k;
}