Skip to content

Instantly share code, notes, and snippets.

@elizmcdnld
Created February 25, 2017 09:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elizmcdnld/7f23a7eec1f902ee5e55dc356fa7a5ce to your computer and use it in GitHub Desktop.
Save elizmcdnld/7f23a7eec1f902ee5e55dc356fa7a5ce to your computer and use it in GitHub Desktop.
Ch.1 - Ex 1.7
public class ex1point7 {
public static void main(String[] args){
System.out.println(4 * (1.0 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11)));
System.out.println(4 * (1.0 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1/11) + (1.0/13)));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment