Architect Priya is drafting blueprints for the new campus building using only integer coordinates. Her first task: measure the straight-line distance between two marked points on the blueprint. Read coordinates of two points (x1,y1) and (x2,y2). Print the Euclidean distance with 2 decimal places.
Input
Four integers x1 y1 x2 y2.
Output
Distance, printed with 2 decimals.
Constraints
-10^4 ≤ coords ≤ 10^4
Sample Input
0 0 3 4
Sample Output
5.00
main.c
Loading editor…
Write C, then Run (custom I/O) or Submit (sample tests). ⌘/Ctrl+Enter submits.