求最大公约数,请问哪里出错?谢谢啦~
# include <stdio.h># include <stdlib.h>
int main ()
{
int m,n;
printf("Enter two integers:");
scanf("%d %d",&m,&n);
do{
m == n;
n == m%n;
}while (n!=0);
printf("Greatest common divisor:%d",m);
system("pause");
return 0;
}