1# I know you're a coder! So instead of using a calculator online,
2# you should make it on your own!
3
4
5#Code:
6
7def compute_lcm(x, y):
8
9 # choose the greater number
10 if x > y:
11 greater = x
12 else:
13 greater = y
14
15 while(True):
16 if((greater % x == 0) and (greater % y == 0)):
17 lcm = greater
18 break
19 greater += 1
20
21 return lcm
22
23num1 = int(input('Number 1'))
24num2 = int(input('Number 2'))
25
26print("The L.C.M. is", compute_lcm(num1, num2))