C program to calculate the sum of series 1 +1/x^1 + 1/x^2 + 1/x^3 ... + 1/x^n terms
belongs to collection: Sum of series programs/examples in C programming language
All Answers
total answers (1)
belongs to collection: Sum of series programs/examples in C programming language
total answers (1)
Program to calculate sum of series 1 +1/x^1 + 1/x^2 + 1/x^3 ... + 1/x^n terms in C
Output
Solution
Series is: 1+1/x^1 + 1/x^2+ 1/x^3 ... + 1/x^n Here, x=2 n=5 1+1/2^1 + 1+1/2^2 + 1+1/2^3 + 1+1/2^4 + 1+1/2^5 1+1/2 + 1+1/4 + + 1+1/8 + 1+1/16 + 1+1/32 1+0.5 + 1+0.25 + 1+0.125 + 1+0.0625 + 1+0.03125 = 5.968750need an explanation for this answer? contact us directly to get an explanation for this answer