Write a program to calculate
the distance between 2 points
(x1,71) and (x2,y2)
Distance = V(x2-x1)2 + (y2-y1)2
Answers
Answered by
1
Answer:
please tell your programming language.
Explanation:
if that is of python then here is your code.
#you haven't said the value of V in your distance formula . if it is given then assign that value like y1. and if it is not given then ask from the user like x1 , x2.
X1=int(input("enter your x1."))
y1= 71
x2=int(input("enter your x2."))
y2=int(input("enter your y2."))
z= v(X2-X1)2 + (Y2-Y1)2
print("distance between two points is ", z)
Similar questions