title: Reading integers from console in C#
body: <p>Please look at the following C++ code and help me to do the same in c#</p>
  
  <pre><code>for(int i=0;i&lt;10;i++)
  {
   cout&lt;&lt;"Enter a["&lt;&lt;i&lt;&lt;"]=";
   cin&gt;&gt;a[i];
  }
  </code></pre>
  
  <p>I tried to implement the same loop in C# for taking integer input but it ended with exception like following</p>
  
  <pre><code>for(int i=0;i&lt;10;i++)
  {
  a[i]=Int32.Parse(Cosole.Read());
  }
  </code></pre>
  
  <p>Can anyone help me to implement that loop in C#? The parse work one time but it doesn't work inside loop. Whats the problem?</p>