powered by
Finds the greatest (positive) common divisor of two integers; if one of them is 0, returns the absolute value of the other number.
gcd(a, b)
An integer.
The greatest (positive) common divisor of two integers; if one of them is 0, returns the absolute value of the other number.
# NOT RUN { gcd(1, 2) gcd(1, -2) gcd(12, -18) gcd(-12, 18) gcd(15, 0) gcd(0, -15) gcd(0, 0) # }
Run the code above in your browser using DataLab