the int B is supposed to b
public static int gcd(int a, int B)/>
{
int gcd;
while (b != 0)
{
int temp = a % b;
a = b;
b = temp;
}
gcd = Math.abs(a);
return gcd;
}
This post has been edited by luron31: 22 February 2010 - 11:19 AM

New Topic/Question
Reply



MultiQuote








|