Please help me with the task: First variable

Hello, I’m working on this task:

Create a variable of type int, with a name - width and assign 25 as it’s value.

Here is my code:


public static class FirstVariable
{
   public static void Main()
   {

   }
}int.height;
height=175;
int.width;
width=75;
int.result=75+75+75+175;
Console.WriteLine(400);

Can anyone please help me to solve it?

  1. When creating a variable type “int height;”, not “int.height;”

  2. You have to put the code you wrote within the curly brackets of “public static void Main()”.

1 Like