S=a+a2/2!+a3/3!+a4/4!+.....an/n!
Answers
Answered by
0
Answer:
Given two values ‘a’ and ‘n’, find sum of series a^1/1! + a^2/2! + a^3/3! + a^4/4! +…….+ a^n/n!.
Examples :
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