title: Does this output have a logic error?
body: <p><code>1.7 (Approximate p) p</code> can be computed using the following formula:</p>
  
  <p>Write a program that displays the result of <code>4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11)</code></p>
  
  <p>and <code>4 * (1 - 1/3 + 1/5 - 1/7 + 1/9 - 1/11 + 1/13)</code></p>
  
  <p>Use <code>1.0</code> instead of <code>1</code> in your <code>3 5 7 9 11 13</code>
  program.</p>
  
  <p>My Code:</p>
  
  <pre><code>/**
  * This program will print two different results in
  * trying to reach a approximation of pi.
  *
  * Author: X   Date: 11/11/2013
  */
  public class one_seven
  {
      public static void main(String[] args)
      {
          System.out.print("This will print 1st approximation: ");
          System.out.println(4*(1.0-(1.0/3)+(1.0/5)-(1.0/7)-(1.0/11)));
          System.out.print("This will print 2nd approximation: ");
          System.out.println(4*(1.0-(1.0/3)+(1.0/5)-(1.0/7)-(1.0/11)+(1.0/13)));
      }
  }
  </code></pre>
  
  <p>My output for the code is:</p>
  
  <pre><code>This will print 1st approximation: 2.531601731601732
  This will print 2nd approximation: 2.83929403929404
  </code></pre>