Write a python function to compute gcd


Topic: Write a python function to compute gcd

Solution

def compute_gcd(x, y):
   while(y):
       x, y = y, x % y
   return x



List all Python Programs