Can greatest common divisor be negative?
Score: 5/5 (49 votes) The greatest common divisor (gcd) of two integers is the same as the gcd of their absolute values. Therefore, the function can just replace negative integers by their negatives, which are positive.Can divisors be negative?Divisors can be negative as well as positive, although s...