Write a program that calculates the distance between two points whose coordinates are (7, 12) and (3, 9). Use the fact that the distance between two points having coordinates (x1, y1) and (x2, y2) is distance = sqrt([x1 - x2])2 + [y1 – y2]2).
rckumhar (Not rated)
(Not rated)
- Write a program that calculates the distance between two points whose coordinates are (7, 12) and (3, 9). Use the fact that the distance between two points having coordinates (x1, y1) and (x2, y2) is distance = sqrt([x1 - x2])2 + [y1 – y2]2).
- 11 years ago
A program of distance between two points
NOT RATED
Purchase the answer to view it
- distance.cpp