Created
February 25, 2017 09:47
-
-
Save elizmcdnld/7f23a7eec1f902ee5e55dc356fa7a5ce to your computer and use it in GitHub Desktop.
Ch.1 - Ex 1.7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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