Python Programming to Find LCM || LCM of given number || Python program to Find LCM || Python LCM

come code
Oct 22, 2021

--

def com(x,y):
if x> y:
greater = x
else:
greater = y
while(True):
if((greater % x == 0 ) and (greater % y == 0 )):
lcm = greater
break
greater +=1
return lcm

num = 54
num1 = 24
print(“The LCM is”, com(num,num1))

Buy some things for below link to grow our channel:-

laptop:- https://amzn.to/3b123ii

mic:- https://amzn.to/3DVLD7k

--

--