title: Finding if a given number in an array is even or odd c#
body: <p>Can anyone shed any light on the subject as to why this is not working, when i am testing it i'm getting lots of random even and odd outputs.</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace ConsoleApplication13
  {
      class Program
      {
          static void Main(string[] args)
          {
  
              int[] array = new int[8] { 1, 2, 3, 4, 8, 5, 7, 9 };
              int UserInput = 0; 
  
              start:
  
              Console.WriteLine("Please enter a slot: ");
              UserInput = Convert.ToInt32(Console.ReadLine()); 
  
              if(array[UserInput]%2 == 0)
              {
  
                  Console.WriteLine("Number is even");
  
              }else
              {
                  Console.WriteLine("Number is odd");
              }
  
              Console.ReadKey();
  
              goto start; 
  
          }
      }
  }
  </code></pre>
  
  <p>i want to output if the cell in the array is even or odd not the inputted number so if the number five is inputted it should output even as cell five contains the number eight. </p>