สถานะการส่งล่าสุด: -

SOS11: Distance basic

Distance

Given a coordinate of 2 point x0, y0, x1, y1 Write a program to solve of the distance in 2 decimal digit.

hint: math.sqrt, \(d = \sqrt {\left( {x_1 - x_2 } \right)^2 + \left( {y_1 - y_2 } \right)^2 }\)

Example Output

Enter x0: 2
Enter y0: 5
Enter x1: 1
Enter y1: 3
The distance between 2 point is 2.24 Units.