Init
This commit is contained in:
16
Lab3CalebFontenot/src/main/java/Exercise01_07.java
Normal file
16
Lab3CalebFontenot/src/main/java/Exercise01_07.java
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Class.java to edit this template
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @author caleb
|
||||
*/
|
||||
public class Exercise01_07 {
|
||||
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.0/11) + (1.0/13)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user