Challenge: Calculate Distance Between Two Points
This challenge will test your knowledge of structs.
We'll cover the following...
Problem Statement
-
A struct
Pointis given which has two items,xandy. -
The function
testis given which has two instances of points initialized with some value ofxandy. -
The task is to calculate the distance between the two points.
The distance between two points is: ...
Ask