这里写代码片#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b ,r;
scanf("%d%d",&a,&b);
while(b!=0)
{
r=a%b;
a=b;
b=r;
}
printf("%d\n",a);
return 0;
}
文章标题
最新推荐文章于 2022-05-12 11:32:07 发布
这里写代码片#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b ,r;
scanf("%d%d",&a,&b);
while(b!=0)
{
r=a%b;
a=b;
b=r;
}
printf("%d\n",a);
return 0;
}