GUVI
Back

javascript probability program

Created 3 years ago
59 Views
0 Comments
IbratNawaz
@IbratNawaz
IbratNawaz
@IbratNawazProfile is locked. Login

How to solve this program in js (any hint)-

the boy rolls an unbiased die until he gets ‘1’. You are given a number n find the total sum of probability that he will get ‘1’ on or before nth trial. (Probability of getting 1 at 1 time + probability of getting 1 at 2 trial….+probability of getting 1 at nth trial)

 

Constraints

1<=n<=1000

Thank You for reading.

Comments
Please login to comment.
 
Powered by habitate.io Habitate