Finds the greatest common divisor of a and b.
a
b
gcd(7, 13); // returns 1gcd(9, 15); // returns 3gcd(12, 24); // returns 12 Copy
gcd(7, 13); // returns 1gcd(9, 15); // returns 3gcd(12, 24); // returns 12
0.4.5
Finds the greatest common divisor of
aandb.