Computer Science, asked by sannomishra09, 3 days ago

1/a+1/a^1+1/a^2+1/a^3+1/a^4+1/a^5 . java programing Loop
solved step by step

Answers

Answered by MohammedAazam07
0

Explanation:

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