#include <stdio.h>
int main()
{
int i,j,n=0;
printf("请输入两个数:");
scanf_s("%d,%d", &i, &j);
while (i % j )
{
n = i % j;
i = j;
j = n;
}
printf("最大公约数为%d", n);
return 0;
}
标签:两个,int,scanf,while,最大公约数,printf,include From: https://blog.51cto.com/u_16336886/8330883