title: How to work out the median C#
body: <p>So I'm struggling to get this piece to output a median value with 4 values.
  The output produces a value one above the actual middle value and I cannot seem to get it to output a decimal even when I change 2 to 2.0. I can get it to output a value with 3 numbers just haven't achieved it with 4.</p>
  
  <pre><code>    Console.Write("Median Value: ");
      var items = new[]{num1, num2, num3, num4 };
      Array.Sort(items);
      Console.WriteLine(items[items.Length/2]);
  </code></pre>
  
  <p>This work is an extension task in my computing class so I may have very well taken a completely wrong approach to this task.
  Thanks in advance</p>