public static void Main()
string[] ourArray = { "Macy", "Ralph", "Noodles" };
Console.WriteLine("Hello, user! Here is your current array:");
Console.WriteLine("Would you like to change an element? [y/n]");
if (Console.ReadLine() == "y")
Console.WriteLine("This is a fixed array of " + ourArray.Length + ". Select what index you would like to change!");
Console.WriteLine("Type one of these numbers to change that element: 1, 2, 3");
string userInput = Console.ReadLine();
if (!int.TryParse(userInput, out int providedIndex) || (providedIndex <= 0 || providedIndex > 3))
Console.WriteLine("Incorrect input! Please try again:");
providedIndex = providedIndex - 1;
Console.WriteLine("Index received! This will change the following element: {0}. \n What would you like it to say?", ourArray[providedIndex]);
string providedElement = Console.ReadLine();
ourArray[providedIndex] = providedElement;
Console.WriteLine("Congrats! Your new array looks like this:");
Console.WriteLine("Must type 'y' to continue. Goodbye 'til next time!");
private static void loopdeloop(String[] providedArray)
for (int i = 0; i < providedArray.Length; i++)
Console.WriteLine("{0}. {1}", i + 1, providedArray[i]);