Please help me with the task: First Array

Hello, I’m working on this task:

Create an array of 5 integers. Don’t fill the array with any values. Output the default values of every cell to the console, each on a new line.

Here is my code:


namespace Arrays
{
   class FirstArray
   {
       public static void Main(string[] args)
       {
           int[] firstArray = new int[5];
           Console.WriteLine(firstArray[0]);
       }
   }
}

Can anyone please help me to solve it?

Hi,

you are outputting only the first array element to the console, but the task asks you to output all of those 5. So basically, it should output 5 zeros.