public static void Main()
string[] colors = { "blue", "green", "red", "yellow", "purple", "orange" };
Console.Write("Enter a color: ");
string userInput = Console.ReadLine().ToLower();
int index = Array.IndexOf(colors, userInput);
Console.WriteLine(userInput + " is found at index " + index + " in the array.");
Console.WriteLine(userInput + " is not found in the array.");