Program to find distance between two points using function
Answers
Answered by
0
Explanation:
Calculate Distance Between Two Points C Program
(Hypotenuse)2 = (Base)2 + (Height)2
Example: z2 = x2 + y2
Distance Between Two Points = √ (x1 – y1)2 + (x2 – y2)2
Also Read: Calculate Roots of a Quadratic Equation in C Programming.
Command: gcc test.c -lm.
Similar questions