write an algorithm distance between two point
Answers
Answered by
2
Answer:
two points, to find the square root of a number we use a predefined function sqrt() which is defined in math. h library header file. In this program, the x1 and x2 variables store the value of the x-axis of both points..
Explanation:
hope it will help you !. Be happy !.
Answered by
0
Learn how to find the distance between two points by using the distance formula, which is an application of the Pythagorean theorem. We can rewrite the Pythagorean theorem as d=√((x_2-x_1)²+(y_2-y_1)²) to find the distance between any two points.
Similar questions
Computer Science,
2 months ago
Math,
2 months ago
Computer Science,
4 months ago
Science,
4 months ago
Computer Science,
9 months ago