summaryrefslogtreecommitdiff
path: root/progs/a275.py
blob: 4d223034c57fdeb1e340f8525a93a10c97a12f6e (plain)
1
2
3
4
5
6
7
8
9
10
11
def lcm(x, y):
   if x > y:
       z = x
   else:
       z = y
   while(True):
       if((z % x == 0) and (z % y == 0)):
           lcm = z
           break
       z += 1
   return lcm