public static void Main()
int[] TheArray = {3,1,4,1,5,9};
Console.WriteLine("The third element of the array is: " + TheArray[2]);
Console.WriteLine("The length of the array is: " + TheArray.Length);
Console.WriteLine("The upper bound of the array is: " + (TheArray.Length - 1));
Console.WriteLine("The third element after sorting the array is: " + TheArray[2]);
string[] months = {"Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"};
Console.WriteLine("Please enter a number ranging from 1 to 12: ");
int userInput = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("The corresponding month is: " + months[userInput - 1]);