bellsimps7179
bellsimps7179
23.03.2020 • 
Mathematics

A man is standing on an infinite ladder. In one move, he can either go up (with probability 0.5), or stay where he is (with probability 0.5). Please simulate one trip and print out the number of steps the man takes to move 100 steps up from his initial position. Hint: consider using inline if statement

Solved
Show answers

Ask an AI advisor a question