Printf enter second point coordinates. Enter the co-ordinate points and find the distance between two points. The formula used for computing Euclidean distance is If the points Ax1y1 and Bx2y2 are in 2-dimensional space then the Euclidean distance between them is AB x2-x12 y2-y12.
The distance formula is used to find the distance between two co-ordinate points x 1y 1 and x 2y 2.
Since PQ is parallel to y-axis x1 x2. AC y2 - y1. The formula for distance between two point x1 y1 and x2 y2 is. Printf enter first point coordinates.