public static void Main()
string [, ,] timetables = new string [2, 3, 3];
timetables [0,0,0] = "French";
timetables [0,0,1] = "German";
timetables [0,0,2] = "History";
timetables [0,1,0] = "Geography";
timetables [0,1,1] = "History";
timetables [0,1,2] = "IT";
timetables [0,2,0] = "Computer Science";
timetables [0,2,1] = "English";
timetables [0,2,2] = "History";
timetables [1,0,0] = "IT";
timetables [1,0,1] = "Spanish";
timetables [1,0,2] = "English";
timetables [1,1,0] = "Food Technology";
timetables [1,1,1] = "History";
timetables [1,1,2] = "French";
timetables [1,2,0] = "Computer Science";
timetables [1,2,1] = "Geography";
timetables [1,2,2] = "French";
Console.WriteLine("Enter student id (0 or 1)");
string Id = Console.ReadLine();
int studentId = Convert.ToInt32(Id);
Console.WriteLine("Enter Period Number (0, 1, or 2): ");
string period = Console.ReadLine();
int Period = Convert.ToInt32(Id);
Console.WriteLine("Enter Day of the Week (0, 1, or 2): ");
string day = Console.ReadLine();
int Day = Convert.ToInt32(Id);
if (studentId < 0 || studentId > 1 || Period < 0 || Period > 2 || Day < 0 || Day > 2)
Console.WriteLine("Invalid input. Please ensure all inputs are within the correct range.");
string subject = timetables[studentId, Period, Day];
Console.WriteLine("The subject for Student " + studentId + 1 + " on Period " + Period + 1 + ", Day " + Day + 1 + " is: " + subject);