Flow chart for distance between two points
It's a python program
Answers
Answered by
3
Answer:
To find the distance between two points in python programming..
we need know the logic ie, the distance between two points formula I'd distance=√(x2-x1)^2+(y2-y1)^2
Explanation:
As we know in python programming language we have no headers ...
for doing mathematics expression we import math package
STEPS:
1.import math
2. intialize the values u want enter x1,x2,y1,y2
x1=2
x2=5
y1=5
y2=9
3.do some logical operations
X=(x2-x1)**2
print(X)
Y=(y2-y1)**2
print(Y)
distance=math.(X+Y)
print(distance)
4. run and end the process
Attachments:
Similar questions