app/site-content/proposals/2009/08/06/gcd.py
changeset 8 294ff7ac9cb6
equal deleted inserted replaced
7:3e6916eb3d2c 8:294ff7ac9cb6
       
     1 def gcd(a, b):
       
     2   if a % b == 0:
       
     3     return b
       
     4   return gcd(b, a %b)
       
     5 
       
     6 print gcd (10, 20)