take array input from user in c# code example
Example 1: user input to array object c#
Student[] ourStudents = new Student[24]; // declared an array of stduent objects
Example 2: user input to array object c#
for (int i = 0; i<24; i++) //just user the static array length
{
myStudents[i].Number = Console.ReadLine();
myStudents[i].Name = Console.ReadLine();
}