Question: Programming in C language to be run on code blocks 5. Write a program that will estimate the value of from the infinite series: 1

Programming in C language to be run on code blocks
5. Write a program that will estimate the value of from the infinite series: 1 113 5 7 9 11 The program should accept an integer from the user and then calculate the value of given that many terms. For example, if the user enters 4, then the program should estimate using the first four terms of the sequence, and output the final result 4 4 4 4=2.895238 TU : Notes. You only need to output the final floating point result Also notice that the sequence switches from adding and subtracting each term. Also be sure your program can handle the 0 case. Some examples: o many terms wold you like to calculate PI to4 89523 ow many terms would you like to calculate PI to 1 ny terms would you ike to calculate PI to: d ou nany terns would you like to calculate PI to: 58e08 13-141573
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
