Finding the length of a line segment

Finding the length of a line segment

How to find the length of a line segment using the coordinates of the endpoints.