//先写个最大公约数的吧. 另一个自己想吧.
#include<stdio.h>
divisor (int a, int b)
{
int a, b, i;
printf("Input a and b: ");
scanf("%d %d", &a, &b);
while (i)
{
i = a % b;
if (i == 0) printf(" Max divisor is %d", b);
a = b;
b = i;
}
}
int main(void)
{
int a, b,;
divisor (a, b);
getch ();
return 0;
}