public static void Main()
string[,] seats = new string[5, 5];
Console.WriteLine("Classroom Seating:");
int maxStudentsInRow = 0;
for (int row = 0; row < seats.GetLength(0); row++)
for (int col = 0; col < seats.GetLength(1); col++)
if (string.IsNullOrEmpty(seats[row, col]))
Console.Write("[Empty]\t");
Console.Write("[" + seats[row, col] + "]\t");
if (studentsInRow > maxStudentsInRow)
maxStudentsInRow = studentsInRow;
int capacity = seats.Length;
Console.WriteLine("\nClassroom Report:");
Console.WriteLine("Total Capacity: " + capacity);
Console.WriteLine("Number of Students Present: " + studentsPresent);
Console.WriteLine("Preferred Row: " + (preferredRow + 1));