Question: I'm trying to make insult program for. I wanted to use arrays to store the entire alphabet from `a` to `z`. I have used the `if statement` so when the user presses the letter `a` something happens. And, if he presses anything but a letter, something else happens. I'm stuck now.

```
class Program
{

    static void Main(string[] args)
    {

        Console.WriteLine("Type any bastard letter!!!");
        ConsoleKeyInfo keyInfo = Console.ReadKey();

        char[] array1 = { 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z' };

        if (keyInfo.KeyChar == 'a')
        {
            SpeechSynthesizer synth = new SpeechSynthesizer();
            Console.WriteLine("You have typed a letter");
            synth.Speak("You have typed a letter");

        }

        else
        {
            SpeechSynthesizer synth = new SpeechSynthesizer();
            Console.WriteLine(" ");
            Console.WriteLine("did you type {0}", keyInfo.KeyChar.ToString());
            synth.Speak("You have typed a bastard number you infentile pillock");
        }

    }
}

```

Answer: 
Without iterating, just use the following expression:

```
if (array1.Contains(keyInfo.KeyChar)) // a letter has been typed...
{
    // ...
}
else
{
    // ...
}

```
You'll need to iterate through the array and check if there is any character that matches what the user has entered but a simple solution would be to do something like:

```
if (array1.Any(c => c == keyInfo.KeyChar)){ ... }
else { ... }

```