Update Program.cs

Fixed silly overly long expression for midpoint.