`
for(int i=0;i<jagged.Length;i++)
{
for(int j=0;j<jagged[i].Length;i++)
{
jagged[i][j] = Convert.ToInt32(Console.ReadLine());
}
}
` i want this piece of code to take 2 score inputs in jagged[0] and 3 score inputs in jagged1 but it is taking 5 inputs in both the cases.
For "n" number of teams with "at" attempts, i want to store the scores of these teams in "at" 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 jagged0 should store the second score input and it should stop there. but it doesnt , it takes input 3 more times.(5 times total)
Similarly, the attempts for 2nd team is input as 3 and still it is taking the input 2 more times (5 times total)