Greatest Common Divisor

Write a function to return GCD(Greatest Common Divisor) of two numbers

example:

greatestCommonDivisor(14, 21);
// 7;
greatestCommonDivisor(69, 169);
// 1;


Share Comments