Skip to content

Commit

Permalink
Update lab_q5
Browse files Browse the repository at this point in the history
  • Loading branch information
ZanButt authored Jan 9, 2021
1 parent 5e8bff3 commit 76d2ec6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lab_q5
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>

/* Calculate the value of from the infinite series PI = 4-(4/3)+(4/5)-(4/7)+......
Write a program which reads in a positive integer n(i.e., n>=1)and calculates the value of by adding up the first n terms of the above series */
int main()
{ /* This program will calculate and print the value of
pi up to the first n terms using an infinite series */
Expand Down

0 comments on commit 76d2ec6

Please sign in to comment.