Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = int(input())
- c = int(input())
- a, b = x, c
- g = 2
- if a == b:
- print('1')
- else:
- while a != b:
- a, b = x, c
- a, b = a * g, b * g
- g += 1
- print(g)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement