赞
踩
#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
int a = 0;
int b = 0;
int c = 0;
scanf("%d%d", &a, &b);
while (c=a%b)
{
a = b;
b = c;
}
printf("最大公因数:%d\n", b);
return 0;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。