please help for this code it's didn't print the array element
i want print the element with index [0] please help meCode:public struct student { public string name; public string gender; public int tel; public string classe; } class Program { static void Main(string[] args) { Console.WriteLine("Enter the Number of student :"); int x = int.Parse(Console.ReadLine()); student []array = new student[x]; int count=1; for (int i = 0; i < array.Length; i++) { array[i] = new student(); Console.WriteLine("Enter info of student {0}",count); Console.WriteLine("Name :"); array[i].name = Console.ReadLine(); Console.WriteLine("Gender :"); array[i].gender = Console.ReadLine(); Console.WriteLine("Tel :"); int tel = int.Parse(Console.ReadLine()); array[i].tel = tel; Console.WriteLine("class :"); array[i].classe = Console.ReadLine(); count++; } Console.WriteLine(array[0]);
it is print like this school.student
school name of project