Length of Line
Time Limit: 1 sec
The Problem
In 2-D every points is located as pair of (x, y).
You will be given two points, point A and point B. If a line is drawn through A to B what will be the length of the line.
Note: Distance of two points = √((x1 – x2)2 + (y1 – y2)2)
The Input
The Input file contains series of lines. Each line contains 4 integer numbers X1 (X1 <=100), X2 (X2 <=100), Y1 (Y1 <=100), Y2 (Y2 <=100). The input file is terminated by EOF
The Output
For each line of input the output will show the length of the line rounded to 2 decimal point in a separate line.
Sample Input
10 5 25 20
10 2 10 2
Sample Output
7.07
11.31
Problem Setter: Samia Safa Ahmed