I was going on a research on some mathematical problems that could be solved by C coding. I have ended up finding this code that given X dice and Y (the sum of the faces facing