I
import
Unregistered / Unconfirmed
GUEST, unregistred user!
最大公约数 int gcd(int a,int b)
{
int i;
for(i=a;i>=1;i--)
if(!((a%i)||(b%i)))
return(i);
}
最小公倍数
int lcm(int a,int b)
{
int i;
i=b;
while(i%a)i+=b;
return(i);
}
---------------------------------------
{
The greatest common factor, or GCF, is the greatest factor
that divides two numbers.
}
{
Der GGT zweier Zahlen ist der gr?
{
int i;
for(i=a;i>=1;i--)
if(!((a%i)||(b%i)))
return(i);
}
最小公倍数
int lcm(int a,int b)
{
int i;
i=b;
while(i%a)i+=b;
return(i);
}
---------------------------------------
{
The greatest common factor, or GCF, is the greatest factor
that divides two numbers.
}
{
Der GGT zweier Zahlen ist der gr?