You are viewing a single comment's thread. Return to all comments →
numerator, denominator = map(int, input().split())
n = int(input())
p = numerator/denominator
q = 1-p
answer = q**(n-1) * p
print(round(answer,3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution I
You are viewing a single comment's thread. Return to all comments →
numerator, denominator = map(int, input().split())
n = int(input())
p = numerator/denominator
q = 1-p
answer = q**(n-1) * p
print(round(answer,3))