Answer:
a line segment is a portion of a straight line which is directly connected to two given points. the given points has coordinate x and y
distance = √(x2-x1)²+(y2-y1)²
example : find distance between two points (2,6) and (3,4) ( find the length of a segment)
d = √(3-2)²+(4-6)
d=√1²+2²
d=√5