Wednesday, September 16, 2015

Dice rolls: Counting number of rolls that equals 6 or 7

The following calculates the number of times the sum of two dice (randomly rolled) equals six or seven.

Code:
———
#include …


No comments:

Post a Comment