title: How can I print the contents of an array horizontally?
body: <p>Why doesn't the console window print the array contents horizontally rather than vertically?</p>
  
  <p>Is there a way to change that?</p>
  
  <p>How can I display the content of my array horizontally instead of vertically, with a <code>Console.WriteLine()</code>?</p>
  
  <p>For example:</p>
  
  <pre><code>int[] numbers = new int[100]
  for(int i; i &lt; 100; i++)
  {
      numbers[i] = i;
  }
  
  for (int i; i &lt; 100; i++)
  {
      Console.WriteLine(numbers[i]);
  }
  </code></pre>