Finds the greatest common divisor (GCD) of two integers using a recursive approximation. In addition to the value of GCD, it generates the number of required iterations to find GCD.
Usage
GCD(x, y, k = 0)
Arguments
x
the first integer greater than zero.
y
the second integer greater than zero.
k
initial value for counting the number of steps. It must be set zero.