Divisible Numbers
Easy Accuracy: 23.48% Submissions: 1114 Points: 2

Given two integers a and b. find the smallest number x (greater than a) which is divisible by b.

Input:
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 .

Output:
For each case print an integer x corresponding to the answer .

Constraints:
1 <= T <= 100
0 <= a,b <= 109

Example:
Input:
2
5 3
25 13

Output:
6
26

to report an issue on this page.

Editorial

We strongly recommend solving this problem on your own before viewing its editorial. Do you still want to view the editorial?

Yes

All Submissions

My Submissions:

Login to access your submissions.