The Pythagorean Theorem:
If a and b are the lengths of the legs of a right triangle and c is the length of the hypotenuse, then the sum of the squares of the lengths of the legs is equal to the square of the length of the hypotenuse.
This relationship is represented by the formula: a2 + b2 = c2
- http://www.montereyinstitute.org
Given the lengths of a right triangle's legs, find the hypotenuse.
INPUT FORMAT
Input begins with an integer n indicating the numbers of computations to process. Succeeding are n pairs of a an b double values, the lengths of the triangle's a and b legs.
OUTPUT FORMAT
For each a and b pair, output the computed hypotenuse with two numbers after the decimal place.
CONSTRAINTS
1 <= n <= 100
1 <= a <= 100
1 <= b <= 100