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:


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

Can anyone please help me to solve it?

Hi Err422, welcome to Codeasy!

In this task you need to have only one Console.WriteLine(), so remove the 2nd one in your solution. The value that you should output is 4*75 + 175 (see the picture for the task)