public static void Main()
int[] pi = new int[] { 3, 1, 4, 1, 5, 9 };
Console.WriteLine("pi [2] = " + pi[2]);
Console.WriteLine("pi.Length = " + pi.Length);
Console.WriteLine("pi. UpperBound (0) = " + pi.GetUpperBound(0));
Console.WriteLine("Sorted pi array:");
Console.Write(num + " ");
Console.WriteLine("pi [2] " + pi[2]);
string[] months = new string[]
{"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
Console.Write("Enter a number between 1 and 12 to get the corresponding month: ");
int monthNumber = int.Parse(Console.ReadLine());
if (monthNumber >= 1 && monthNumber <= 12)
Console.WriteLine("The corresponding month is: " + months[monthNumber - 1]);
Console.WriteLine("Invalid input. Please enter a number between 1 and 12.");
Console.WriteLine("months.Length = " + months.Length);
Console.WriteLine("Upper bound of months = " + months.GetUpperBound(0));
int[,] iScores = new int[3, 4];
Console.WriteLine("Upper bound of iScores (dimension 0) = " + iScores.GetUpperBound(0));
Console.WriteLine("Upper bound of iScores (dimension 1) = " + iScores.GetUpperBound(1));