-->
当前位置:首页 > 题库

PROGRAMMING:Calculation of the distance between two points on a plane

Luz5年前 (2021-05-10)题库449
Input the coordinates of two points a and B on the plane, (x1, Y1) and (X2, Y2), and complete the following tasks:
1. The user is required to input 4 values of plane coordinates of a and B;
2. Calculate and output the distance between two points, keeping 2 decimal places.
###Input format:
```
X coordinate of point a, y coordinate of point a
X coordinate of point B, y coordinate of point B
```
###Input example:
```in
15,-189
22,176
```
###Output example:
```out
three hundred and sixty-five point zero seven
```
Tip: the X and Y coordinates are separated by commas. Please query the document to learn how to use the split() function of STR type to separate the input into two parts with commas.







answer:If there is no answer, please comment