I am still in the learning process of C++, and I have this assignment due Monday. My problem is that I have no idea how to get started. Here is the homework I was assigned:
One formula to calculate π expresses it as an infinite series of the form
π = ((4/1) - (4/3)) + ((4/5) - (4/7)) + ((4/9) - (4/11)) + ((4/13) - (4/15)) ...
Print the value of π after every fourth calculation, for the first 2000 terms of this series (500 output values). For convenience, your output should insert a newline after every five values, making a table where every row displays five values.
I see the pattern of the formula, and I know I would want to use nested loops in this case to make the table and include all of the calculations, I'm just very very stuck. I just need a little assistance, thank you!