C# check if number exists in array
<p>I am trying to ask user to enter 10 numbers and store them into the array. Then prompt the user to enter any number to check if the number already stored in the array. The screen will go away when I enter any number, which I cant validate if the number already exist. Please look at my codes. Thanks in advance. </p>

<pre><code>static void Main(string[] args)
    {
        int[] numCheck = new int[10];
        int[] userInput = new int[1];

        Console.WriteLine("Please enter 10 numbers: ");

        for (int i = 0; i &lt; 10; i++)
        {
            Console.Write("Number {0}: ", i + 1);
            numCheck[i] = int.Parse(Console.ReadLine());
        }

        Console.WriteLine("Please enter any number to check if the number already exist");

        for (int j = 0; j &lt;= 10; j++)
        {
            if (userInput == numCheck)
            {
                Console.Write("The number {0} is in the index", numCheck);
                userInput[j] = int.Parse(Console.ReadLine());
            }

            else 
            {
                Console.Write("The number {} is not in the index", numCheck);
            }
        }
</code></pre>
