Guest User

Untitled

a guest
May 26th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. n = int(raw_input())
  2.  
  3. while n:
  4. s = raw_input().split()
  5. a = int(s[0])
  6. b = int(s[1])
  7.  
  8. iloczyn = a*b
  9. while a!=b:
  10. if a>b:
  11. a-=b
  12. else:
  13. b-=a
  14. print iloczyn/a
  15. n-=1
Add Comment
Please, Sign In to add comment