title: Why does my array contain integers I never added? C#
body: <pre><code>  int gameTurns = 12;
          do
          {               
              gameTurns -= 1;
              Console.WriteLine("     You have " + (gameTurns) + " attempts left.");
              Console.WriteLine();            
              Console.WriteLine();
  
              string userEnteredPassword = "";
              Console.WriteLine("Enter a password of 4 digits ");
              userEnteredPassword = Console.ReadLine();
  
             for (int i = 0; i &lt; numbersToGuess.Length; i++)
              {
                  numbersFromPlayer[i] = Convert.ToInt16(userEnteredPassword[i]);                    
                  Console.WriteLine(numbersFromPlayer[i]);
              }
  </code></pre>
  
  <p>Note that numbersToGuess was declared like this:</p>
  
  <pre><code> for (int i = 0; i &lt;= 3; i++) 
          {
              numbersToGuess[i] = Convert.ToInt16(sequence.Next(9));
              Console.WriteLine(numbersToGuess[i]);
          }
  </code></pre>
  
  <p>When I run my code with the values: 1, 2, 3, 4, 
  it prints: 49, 50, 51, 52.</p>