Go Back
Distance Finder (0)
Description

Find the distance between two points.

Input

The first line of input contain an integer T denoting the number of test cases. Each test case consists of one line, which contains 2 points in the format (x1, y1) (x2, y2).

Output

Print the distance between the points (upto 2 decimal places) on new line.

Constraints

1 <= T<= 100
x1, y1, x2, y2 will be integers.
Distance can be a floating value.

Example
Copy Input

Input:
2
(1,2) (2,3)
(0,0) (-1,0)
Output:
1.41
1.00

Explanation

1) Our coordinates are x1=1,y1=2,x2=2,y2=3. We calculate the distance between these points by known methods one of which is using Euclidean distance formula, √((x2-x1)2+(y2-y1)2).

Universe
Contest open for 1 year with playlists problems



Announcement


Supported by our Coding Partner