Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input())
- b = int(input())
- n = 2
- if a > b:
- ma = a
- mi = b
- elif a<b:
- ma = b
- mi = a
- if a==b:
- s=a
- else:
- while n <= mi:
- if ma % n == 0 and mi % n == 0:
- s = ma/n*mi
- n=mi+1
- else: s=mi*ma
- n += n
- print(s)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement