1757u Calculate e

1757   u Calculate e

题目描述

A simple mathematical formula for e is

where n is allowed to go to infinity. This can actually yield very accurate approximations of e using relatively small values of n.

输入格式:

输出格式:

Output the approximations of e generated by the above formula for the values of n from 0 to 9. The beginning of your output should appear similar to that shown below.

输入样例 复制

					
输出样例 复制
n e
- -----------
0 1
1 2
2 2.5
3 2.666666667
4 2.708333333

说明

26
43
通过提交
时空限制2000ms/64mb
题目来源
评测方式在线评测
题目类型
难        度