title: An array initializer of length '10' is expected
body: <p>I am a student and I am trying to write C # code over two dimensional arrays, but constantly writes it gives an error&quot;An array initializer of length '10' is expected&quot;. How to fix it?</p>
  <pre><code>using System;    
  static class MatrixBasic
  {
      public static void Main()
      {
          Int32[,] m = new Int32[,] {{1,2,3,4,5,6,7,8,9,10},{0,0,1,2,3,4,5,6,7,8,9},{0,0,0,1,2,3,4,5,6,7,8},{0,0,0,0,1,2,3,4,5,6,7},{0,0,0,0,0,1,2,3,4,5,6},{0,0,0,0,0,0,1,2,3,4,5},{0,0,0,0,0,0,0,1,2,3,4},{0,0,0,0,0,0,0,0,1,2,3},{0,0,0,0,0,0,0,0,0,1,2},{0,0,0,0,0,0,0,0,0,0,1}};
          for (Int32 iRow = 0; iRow &lt;= m.GetUpperBound(0); iRow += 1)
          {
              for (Int32 iCol = 0; iCol &lt;= m.GetUpperBound(1); iCol +=1)
              {
                  Console.Write(&quot; {0}&quot;, m[iRow, iCol]);
              }
              Console.WriteLine();
          }
      }
  }
  </code></pre>