Problem1060--【C语言训练】计算t=1+1/2+1/3+...+1/n

1060: 【C语言训练】计算t=1+1/2+1/3+...+1/n

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 431  Solved: 197
[Submit] [Status] [Web Board] [Creator:]

Description

计算t=1+1/2+1/3+...+1/n

Input

整型变量n

Output

t(保留六位小数)

Sample Input Copy

10

Sample Output Copy

2.928968 

Source/Category