#include<stdio.h> #include<windows.h> int main() { int a,b,c; printf("请输入两个数:"); scanf("%d %d",&a,&b); while(a%b!=0) { c=a%b; a=b; b=c; } printf("两个数最大公约数是:%d",c) system("pause"); return 0; }
最大公约数
猜你喜欢
转载自blog.csdn.net/qq9116136/article/details/79054045
今日推荐
周排行