Time limit
1s
Memory limit
128 MB
For two natural numbers A and B, a common multiple is a natural number that is a multiple of both A and B. The least common multiple is the smallest such number.
Given several pairs of natural numbers A and B, write a program that computes the least common multiple for each pair.
The first line contains the number of test cases T (1 ≤ T ≤ 1,000). Each of the next T lines contains two natural numbers A and B (1 ≤ A, B ≤ 45,000).
For each test case, print the least common multiple of A and B on its own line, in the same order as the input.