# Python program to calculate midpoints of a line-segment

print('\nCalculate the midpoint of a line :')

x1 = float(input("Enter X1 :"))
y1 = float(input("Enter Y1 :"))
x2 = float(input("Enter X2 :"))
y2 = float(input("Enter Y2 :"))

x = (x1 + x2)/2
y = (y1 + y2)/2
print("The midpoint of line is :", x,y)
