Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x,y = int(input('')),int(input(''))
- d = x*y
- a= 1
- prvi = []
- drugi = []
- treci = []
- while a != d and x!=0 and y!=0:
- g = (x * a)
- prvi.append(g)
- h = (y * a)
- drugi.append(h)
- a+=1
- for i in prvi:
- for j in drugi:
- if i == j:
- treci.append(i)
- if not treci:
- if x>=y:
- print(y)
- else:
- print(b)
- else:
- print(min(treci))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement