title: Trying to calculate the distance between 2 points
body: <pre><code>/*----------------------------------------------------------------------------*/
  /* Program Chapter 2 Modify                        */
  /*                                                 */
  /* This program calculates the                     */
  /* distance between two points                     */
  
  #include &lt;stdio.h&gt;
  #include &lt;math.h&gt;
  
  int main(void)
  {
  /* Declaration and initialization of variables.*/
  double x1=1, y1=5, x2=4, y2=7, side_1, side_2, distance;
  
  /* Compute the sides of a right triangle.      */
  side_1 = x2 - x1;
  side_2 = y2 - y1;
  distance = sqrt(side_1*side_1 + side_2*side_2);
  
  /* Print results.                              */
  printf("The distance between the two points is ""%5.2f \n", distance);
  
  /* Exit program.                               */
  return 0;
  }
  /*----------------------------------------------------------------------------*/
  </code></pre>
  
  <p>I'm trying to get it to output "The distance between the two points is 3.61" in C via Visual Studio 2010 and it isn't working. This is my first time writing a C program. Any help is much appreciated. </p>