Given two positive integers num1 and num2, the task is to find the remainder when num1 is divided by num2.
First line of the input contains an integer T, denoting the number of testcases. Then T test cases follow. Each testcase consists of a single line containing two positive integers num1 and num2 seperated by a space.
Corresponding to each testcase, print the remainder in a new line.
1 <= T <= 100
0 <= num1 <= 50
1 <= num2 <= 50
Testcase 1: The remainder after dividing 5 by 3 is: 2.
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.