You are viewing a single comment's thread. Return to all comments →
a,b=map(int,input().split()) p=a/b q=1-p n=int(input()) r=(q**(n-1))*p print(round(r,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 →