public static void Main()
int[, ] grades = {{1, 80, 90, 100, 80}, {2, 70, 65, 90, 100}, {3, 50, 49, 80, 62}};
for (int i = 0; i < grades.GetLength(0); i++)
for (int j = 1; j < grades.GetLength(1); j++)
sum = sum + grades[i, j];
int avg = sum / (grades.GetLength(1) - 1);
Console.WriteLine("Person #" + grades[i, 0]+" has an average of " + avg);
Console.WriteLine("They failed for the quarter.");