A+ Work





(Compute π) You can approximate π by using the following formulas: pi += sign / (2 * i - 1.0); where i is the name of a variable in a for loop and pi is the name of the variable for π and sign has an initial value of 1 when it is declared and within the for loop is set to equal the negative of itself. Make sure you use a for loop for this assignment. The for loop's starting value should be 2 and ending value should be when i is less  than or equal to 100000. If the value of pi divided by 10000 is zero than pi should be (4 * pi).