Write a program that inputs the x, y coordinates for two points and computes distance between two points

Write a program that inputs the x, y coordinates for two points and computes distance between two points using the formula: Distance = sqrt (x2 – x1)2 + (y2 – y1)2.

 

Output

Enter x coordinate of first point (x1): 4
Enter y coordinate of first point (y1): 6
Enter x coordinate of second point (x2): 7
Enter y coordinate of second point (y2): 4
Distance between the two points: 3.60555