Source Code
#include <stdio.h>
#include <stdlib.h>
int main()
{
    int T=0;
    scanf("%d", &T);
    for(int i=1;i<=T;i++){
        int x=0;
        int y=0;
        scanf("%d %d", &x, &y);
        if(y>=x){printf("\n%d\n",y);}
        else{
        for(int j=x;j>=x;j++){
            if(j%y==0){printf("\n%d\n",j);break;}
        }

        }
    }
    return 0;
}
Copy
AZOZ with an O (EZ Version) Qais Jildeh
GNU G++17
3 ms
204 KB
Wrong Answer