First to Roll a Six on an Eight-Sided Die
You and a friend take turns rolling a fair eight-sided die labeled 1 through 8. The first person to roll a 6 wins. Your friend goes first. What is the probability you win?
Input: none. Output: the ex...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
