write a python program to find the sum of the series 1/1! + 2/2! +......n/n!
Answers
Answered by
2
Answer:
Explanation:
#Python Code:
def Sum(n):
# Computing MAX
res = 0
fact = 1
for i in range(1, n+1):
fact *= i
res = res + (i/ fact)
return res
num = 5 #change the num value to what you want.
print("Sum: ", Sum(num))
Similar questions