When debugging, novices insert corrective code; experts remove defective code. Richard Pattis

Dice Throw Problem

Language Java | Level Intermediate | Category Algorithms | August 4, 2015 9:09 am


Algorithm Problem Description

Find the number of ways to get the summation of values on each face when all dice thrown. We have N dice with M faces.

Output

          	        
          	        

The number of faces in Dice: 6
The number of throws: 6
The Summation of all throws: 30
Possibility of dice: 456/46656

          	        
          	        				    


Comments



Please login to add comments.