Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (9 sloc) 304 Bytes
__author__ = 'Avinash'
num1 = int(input("Enter first number: \t"))
num2 = int(input("Enter second number: \t"))
numbers_min = min(num1, num2)
while(1):
if(numbers_min % num1 == 0 and numbers_min % num2 == 0):
print("LCM of two number is: ", numbers_min)
break
numbers_min += 1