Distance Between Two Points
Computer Mathematics
Easy
2 views
Problem Description
Compute Euclidean distance between two points (x1,y1),(x2,y2) with 2 decimals.
Input Format
Four numbers x1 y1 x2 y2.
Output Format
One number.
Official Solution
Distance = sqrt((x2-x1)^2+(y2-y1)^2). Print with 2 decimals.
Solutions (0)
No solutions submitted yet. Be the first!
No comments yet. Start the discussion!