Please help me with the task: "Stop moving walls"

Hello, I’m working on this task:

Write the program that calculates 10 squared and outputs it to the screen. The output should be:
10 squared is ***

Here is my code:


public static class StopMovingWalls
{
   public static void Main()
   {
       int valueOne = 10*10;
       Console.WriteLine($"10 squared is"{valueOne});
   }
}

Can anyone please help me to solve it?

Hi Ana, welcome to Codeasy!

I think the problem is in this line:

Console.WriteLine($"10 squared is"{valueOne});

You should close the quotes after the interpolated value, like this:

Console.WriteLine($"10 squared is {valueOne}");

Please try it and let me know if it worked :smiling_face:

Yes! You were right! Thanks a lot! :sweat_smile::blush:

1 Like