title: Find minimum and maximum number from array, minimum is always 0
body: <p>The program first asks the user for the number of elements to be stored in the array, then asks for the numbers.<br><br>
  This is my code</p>
  
  <pre><code>    static void Main(string[] args)
      {
          Console.Write("How many numbers do you want to store in array: ");
          int n = Convert.ToInt32(Console.ReadLine());
          int[] numbers = new int[n];
          int min = numbers[0];
          int max = numbers[0];
  
          for (int i = 0; i &lt; n; i++)
          {
              Console.Write("Enter number {0}:  ", i+1);
              numbers[i] = Convert.ToInt32(Console.ReadLine());
          }
  
          for (int i = 0; i &lt; n; i++)
          {
              if (min &gt; numbers[i]) min = numbers[i];
              if (max &lt; numbers[i]) max = numbers[i];
          }
          Console.WriteLine("The minimum is: {0}", min);
          Console.WriteLine("The maximum is: {0}", max);
          Console.ReadKey();
      }
    }
  }
  </code></pre>
  
  <p>But minimum value is always 0, why is that?</p>