public static void Main()
string[] pets = {"Macy", "Ralph", "Noodles"};
Console.WriteLine("Enter 1 to update an element or 2 to print the array");
int choice = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the index of the element you want to update (0, 1, or 2)");
int index = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter the new value for the element");
string newValue = Console.ReadLine();
Console.WriteLine("The current array is:");
foreach (string pet in pets)