i have an assignments and i don't know how i can do it and make the equation
can you help me please?
Create a program using a for-loop to calculate the value of pi from the infinite series:
pi = 4 – (4/3) + (4/5) – (4/7) + (4/9) – (4/11) + . . .
Allow the user to specify the number of series of computations to approximate the
values of pi.