Probability That the Sum of 10 Dice Is a Multiple of 7
Roll n fair six-sided dice (faces 1-6, equally likely, independent). You win if the sum of the dice is a multiple of 7; otherwise you get nothing.
Compute the probability of winning and output it as ...
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:
