void gongyueshu(){
int a,b,r,n;

scanf("%d,%d", &a, &b);
if(a<b){
n=a;
a=b;
b=n;
}
r=a%b;
while(r!=0){
a=b;
b=r;
r=a%b;
}
printf("%d",b);
}

 

#include<stdio.h>
int main() {
void gongyueshu();
gongyueshu();

}

相关文章:

猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
相关资源
相似解决方案