k = int(input())
s = 0
f = 1
for i in range(1, k + 1):
f /= i
s += f
print(s)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
k = int(input())
s = 0
f = 1
for i in range(1, k + 1):
f /= i
s += f
print(s)