Divisible Numbers
Submissions: 1091   Accuracy:

23.49%

  Difficulty: Easy   Marks: 2

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

Input
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<=50
0<=a,b<=10^9


Example:

Input:

2
5 3
25 13

Output:
6
26

** For More Input/Output Examples Use 'Expected Output' option **

Contributor: Hardik Gulati
Author: hardikgulati96


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.


to report an issue on this page.