Modulus of two double numbers
Submissions: 1763   Accuracy:

22.99%

  Difficulty: Basic   Marks: 1

Given two floating point numbers, find remainder.

INPUT : The first line consists of an integer T i.e. the number of test cases. First and last line of each test case consists of two double values a and b.

OUTPUT : Print the remainder of the two values.

CONSTRAINTS : 
1<=T<=100
1<=a,b<=1000

EXAMPLES : 
INPUT :

2
36.5 5.0
9.7 2.3

OUTPUT :
1.5
0.5

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

Author: saksham0751


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.