#Z14402. 求出e的值
求出e的值
Description
Using the formula $e = 1 + \frac{1}{1!} + \frac{1}{2!} + \frac{1}{3!} + \dots + \frac{1}{n!}$, calculate the value of , preserving 10 decimal places.
Input Format
The input consists of a single line containing an integer (), indicating that the summation for calculating includes terms up to .
Output Format
The output consists of a single line displaying the computed value of , formatted to 10 decimal places.
10
2.7182818011