title: 2D array printing C#
body: <p>I want to print a 2D array, I tried using the following code, but it's only printing the first row of the array, why is it doing that and not printing the whole array in one line?</p>
  
  <pre><code>for (int x = 0, y = 0; y &lt; 3; y++)
  {
      for (; x &lt; 3; x++)
          Console.Write("{0}, ", arr[x, y]);
  }
  </code></pre>