Please help me with the task: Draw a way to a safe place.

Hello, I’m working on this task:

Write a program that calculates and outputs to the screen the distance from your position (blue dot) to the destination (red dot). Tip: You need to use int variables and plus ‘+’ operation in your solution.

Here is my code:


using System;

public static class DrawToSafetyPlace
{
   public static void Main()
   {
       int result = 175+175;
       Console.WriteLine(result);
   }
}

Can anyone please help me to solve it?

this code should work, i used some random variables,…
using System;

public static class DrawToSafetyPlace
{
public static void Main()
{
// Coordinates your position
int x1 = 100;
int y1 = 200;

   // Coordinates  red dot 
   int x2 = 175;
   int y2 = 175;
   
   // Calculate the distance 
   int deltaX = x2 - x1;
   int deltaY = y2 - y1;
   double distance = Math.Sqrt(deltaX * deltaX + deltaY * deltaY);
   
   // Output
   Console.WriteLine("The distance from blue to the red dot is:  " + distance);

}
}