title: While Looping an Array
body: <p>I'm trying to understand a book from Don Gosselin on ASP.NET Programming with Visual C#. To solve it I just simply make it to work by adhering to while loops: one while loop is to assign a number to an array element, the other while loop is to display that array. Total array count displays 1 through 100. This should have worked but didn't. Visual Studio 2013 debugger for some reason assigns count = 100, that's why it's failing. </p>
  
  <pre><code>&lt;%
      int count = 0;
      int[] numbers = new int[100];
  
      while (count &lt;= 100)
      {
          numbers[count] = count;
          ++count;
      }
      while (count &lt;= 100)
      {
          Response.Write(numbers[count] + "&lt;br /&gt;");
          ++count;
      }
  
  %&gt;
  </code></pre>