title: Jagged array exceeding input c#
body: <p>`</p>
  <pre><code>for(int i=0;i&lt;jagged.Length;i++)
  {
  for(int j=0;j&lt;jagged[i].Length;i++)
  {
  jagged[i][j] = Convert.ToInt32(Console.ReadLine());
  }
  }
  </code></pre>
  <p>`
  i want this piece of code to take 2 score inputs in jagged[0] and 3 score inputs in jagged<a href="https://i.stack.imgur.com/EZOxh.png" rel="nofollow noreferrer">1</a> but it is taking 5 inputs in both the cases.</p>
  <p><a href="https://i.stack.imgur.com/EZOxh.png" rel="nofollow noreferrer">jagged array input problem</a></p>
  <p>For &quot;n&quot; number of teams with &quot;at&quot; attempts, i want to store the scores of these teams in &quot;at&quot; attempts in the jagged array
  example :
  if used inputs n = 2 and at= 2 for the first team.
  a jagged[2][2] should be created,
  i want to store the scores in this way-
  jagged[0] should be =  new int[2]; (which i did at line 15)
  The lines starting from 21 are supposed to store these scores,
  but when i run the program, it takes input of scores more than the Length.
  What i want is -
  jagged[0][0] should store the first score input
  jagged<a href="https://i.stack.imgur.com/EZOxh.png" rel="nofollow noreferrer">0</a> should store the second score input
  and it should stop there. but it doesnt , it takes input 3 more times.(5 times total)</p>
  <p>Similarly, the attempts for 2nd team is input as 3 and still it is taking the input 2 more times (5 times total)</p>