Write the greatest common divisor (GCD) program in Prolog. The greatest common divisor of two or more non-zero integers, is the largest positive integer that divides the numbers without a remainder. For example, the GCD of 8 and 12 is 4.
1 | % base case |