write a program in Java to find the sum of the given series s=1/a+1/a square+1/a cude +.--------------- +1/an
Answers
Answered by
0
Answer:
Input : a = 2 and n = 5
Output : 6.26667
We get result by adding
2^1/1! + 2^2/2! + 2^3/3! + 2^4/4! +
2^5/5!
= 2/1 + 4/2 + 8/6 + 16/24 + 32/120
= 6.26667
Similar questions