What is LCM-
LCM stands for lowest common multiple
Example -
let we have a two number 10 and 12 then common multiple of these two number is 60,120,180,....
but lowest one is 60,
so we can conclude that LCM of 10 and 12 is 60
Program -
print("Enter first number")
a=int(input())
print("Enter second number")
b=int(input())
m=max(a,b)
while(1):
if m%a==0 and m%b==0:
print("LCM is - "+str(m))
break
m=m+1
output -
Enter first number
12
Enter second number
18
LCM is - 36
Enter first number
10
Enter second number
12
LCM is - 60
Enter first number
23
Enter second number
25
LCM is - 575