Modulus of two double numbers
Basic Accuracy: 23.4% Submissions: 2558 Points: 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

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.