Write a python program to compute the smallest
number that is divisible by 2 inputed numbers using (while, for, break or continue)
a = int(input("Please enter the first value "))
b = int(input("Please enter the second value "))
number = 1
while True:
if number%a==0 and number%b==0:
print("Result " + str(number))
break
else:
number+=1
Comments
Leave a comment