Question: PLEASE WRITE IN IN C LANGUAGE 2. Write a function that can calculate the approximate value of pi via the following formula. 4=k=1n(1)k12k11=1131+5171 [Hint: for
PLEASE WRITE IN IN C LANGUAGE
2. Write a function that can calculate the approximate value of pi via the following formula. 4=k=1n(1)k12k11=1131+5171 [Hint: for loop, function] Expected outcome: Please input n:100 Pi is: 3.1316
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
