title: Find a midpoint between two points
body: <p>How do i calculate a midpoint between point a and b? Will my code gonna work?</p>
  
  <pre><code>struct Point
  {
    int x;
    int y;    
  };
  
  Point midpoint(const Point&amp; a, const Point&amp; b)
  {
      double middle = (a.x + b.x) / 2;
      return middle;
  }
  </code></pre>