Hi! I have an assignment to write a program for the infinite series of pi:
4 - 4/3 + 4/5 - 4/7 ...
I have most of the assignment complete, but it gives the wrong numbers for pi, so help!
It produces
"Enter number of terms for pi:5
1:4
2:2.66667
3:4.8
4:3.42857
5:4.44444
continue (y/n)?"