Please enter your email address or userHandle.
Given two integers a and b. find the smallest number x (greater than a) which is divisible by b.
The first line of input contains of an integer 'T' denoting number of test cases.Then T test cases follow.Only line of each test case contains two integers a and b .
For each case print an integer x corresponding to the answer .
1 <= T <= 100
0 <= a,b <= 109
We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?
Login to access your submissions.
Please choose 'ReadOnlyMode' if you needn't to 'Edit' the problem e.g. viewing OJ's solution, TestCase Files (TCFs), TimeLimit etc.