Professional Documents
Culture Documents
flag = ""
while flag == "":
A1 = float(input("X1= "))
A2 = float(input("Y1= "))
B1 = float(input("X2= "))
B2 = float(input("Y2= "))
X = (A1+B1)/2
Y = (A2+B2)/2
print("Midpoint: ", X,",",Y)
C = Y - (M*X)
print("c",C)
x = abs(B1 - A1)
y = abs(B2 - A2)
L = sqrt(X**2 + Y**2)
print("Length of line",L)