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