Series With Factorial Sum

4.3

3 votes
Easy
Problem

Find The Sum of The Following Series

1/1! + 2/2! + 3/3! + 4/4! + ...... + N/N!

Input Format

Take Input Value of N

Output Format

Single Floating Value (i.e., Sum of Series)

Constraints

  • 0 < N < 15

NOTE
Print Your Result Upto 4 Decimal Places

Sample Input
3
Sample Output
2.5000
Time Limit: 1
Memory Limit: 256
Source Limit:
Editor Image

?