Question: Problem (1) [10 points] Suppose you have four variables with values: x1, yl, x2, and y2. Write C++ code that finds the distance between these
![Problem (1) [10 points] Suppose you have four variables with values:](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f50211c6ae2_88166f5021160888.jpg)
Problem (1) [10 points] Suppose you have four variables with values: x1, yl, x2, and y2. Write C++ code that finds the distance between these two points and stores this value in a variable called: dist. (This can be done on a single line of code. More lines are okay too...)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
