Question: public class Exercise01_07 { public static void main(String[] args) { double pi = 4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) -
public class Exercise01_07 { public static void main(String[] args) { double pi = 4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11)); System.out.println(pi); double pi2 = 4.0 * (1 - (1.0/3) + (1.0/5) - (1.0/7) + (1.0/9) - (1.0/11) + (1.0/13)); System.out.println(pi2); } }
in code what is the input?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
