public static void Main()
Console.WriteLine("How many students are there?");
numStudents = int.Parse(Console.ReadLine());
for (x = 1; x <= numStudents; x++)
Console.WriteLine("What is the name of student number {0}?", x);
name = Console.ReadLine();
for (count = 1; count <= 5; count++)
Console.WriteLine("Enter mark number {0}: ", count);
mark = int.Parse(Console.ReadLine());
while ((mark > 100) || (mark < 0))
Console.WriteLine("Invalid mark entered");
Console.WriteLine("Enter mark number {0}: ", count);
mark = int.Parse(Console.ReadLine());
Console.WriteLine("The learner with the highest average is {0} with an average of {1}", highestName, max);
Console.WriteLine("There are {0} marks greater than or equal to 50", markOver50);