Question: How do I check if user input matches a number in an array? 

I've learned to compare user input or search using a string array, however doing the same with an int array is not working for me. 

```
zipCode[i] = 0;
int userZip = 0;

do 
{
    Console.WriteLine( "enter a 5 digit zip code to see if it is supported in our area." );
    Console.WriteLine( );
    Console.WriteLine( "Enter a 0 to exit the program" );
    userZip = 0;
    if ( userZip == zipCode[i] ) 
    {
        found = true;
        if ( found ) 
        {
            Console.WriteLine( "We support zip code {0}", userZip ); ;
        } 
        else 
        {
            Console.WriteLine( "We do not support", userZip );
        }
    }
} while ( userZip != 0 );

Console.ReadLine( );

```

Answer: 
An `int` array is `Enumerable<int>`, so you could just use `Contains()`: <https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.contains?view=netframework-4.7.2>
TheFastCat and Rufus L done great job.
I just want to add an example. Using 'var' datatypes makes things easy and durable as well in C#
This example demonstrates both 'int' and 'string' using var datatypes in both cases. Good luck haberjin.

```
static void Main(string[] args)
{
        //var ZipCodes = new List<string>() { "04846", "40569", "76859","54896", "84623" }; // ZipCodes are stored as a string in a List
        var ZipCodes = new List<int>() { 04846, 40569, 76859, 54896, 84623 }; // ZipCodes are stored as an int in a List

        //var userZip = "";
        var userZip = 0;

        do
        {
            Console.WriteLine("Enter a 5 digit zip code to see if it is supported in our area.");

            //userZip = Console.ReadLine(); // Enable to receive userZip as a string
            userZip = int.Parse(Console.ReadLine()); // receive userZip as an int

            if (ZipCodes.Contains(userZip))
            {
                Console.WriteLine("We support zip code {0}", userZip);
            }
            else
            {
                Console.WriteLine("We do not support", userZip);
            }

            //} while (userZip != "0");
        } while (userZip != 0);
    }

```