title: Storing user input inside int array
body: <p>I just started learning C# and here is where I got stuck. I need an array similar to the one I made in the code, but with integer data type.
  Something like this:</p>
  
  <pre><code>int[] answer = new int[a];
  for (int i = 0; i &lt; answer.Length; i++)
  {
      answer[i] = Convert.ToInt32(Console.ReadLine());
  }
  </code></pre>
  
  <p>I got the warning message:</p>
  
  <blockquote>
    <p>"Input string was not in a correct format."</p>
  </blockquote>
  
  <p>What is the easiest way to get user input in an integer data type to be stored inside the array <code>answer</code>?</p>