Computer Science, asked by jon22snow, 1 year ago

write a python program to find the sum of the series 1/1! + 2/2! +......n/n!​

Answers

Answered by vensrmaddula
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