Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num1 = int(input("Type an exact number:"))
- num2 = int(input("Type another exact number:"))
- max = max(num1, num2)
- min = min(num1, num2)
- bigger = max
- while bigger % min != 0:
- bigger += max
- print("The LCM is", bigger)
Advertisement
Add Comment
Please, Sign In to add comment