Modify the Hello World prorgamm given in the slides and programmed in the first exercise to calculate the eudlidean distance.1

Step 1

Create variables to hold the values for the different coordinates of two points. These two points are two dimensional.

Step 2

Calculate the euclidean distance2 from the given points/coordinates.

Hint: We need to use the square root function.3

Step 3

Write your solution on the console and verify that it worked correctly.

  1. You can find the solution to this task Here.

  2. Wikipedia site for euclidean distance calculation

  3. MSDN site for Math.Sqrt()