You are viewing a single comment's thread. Return to all comments →
num,den= map(int, input().split()) k=int(input()) p=num/den geodis=0 for k in range(1,6): geodis+=((1-p)**(k-1))*p print(round(geodis,3))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 4: Geometric Distribution II
You are viewing a single comment's thread. Return to all comments →