📅  最后修改于: 2022-03-11 14:46:34.555000             🧑  作者: Mango
代码示例3
def lcm(a, b):
i = 1
if a > b:
c = a
d = b
else:
c = b
d = a
while True:
if ((c * i) / d).is_integer():
return c * i
i += 1;