Find the sum of the series S = 1 + (½)2 + (1/3)3 +.... to 0.0001% accuracy using c programming
Answers
Answered by
0
Answer:
Program to find the sum of a Series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n
You have been given a series 1 + 1/2^2 + 1/3^3 + …..+ 1/n^n, find out the sum of the series till nth term.
Examples:
Explanation:
Input : n = 3
Output : 1.28704
Explanation : 1 + 1/2^2 + 1/3^3
Input : n = 5
Output : 1.29126
Explanation : 1 + 1/2^2 + 1/3^3 + 1/4^4 + 1
Similar questions