Friday, July 31, 2009

C++ problem 2 dice roll?

can someone help me write this in C++





There are 11 possible outcomes to the roll of 2 dice. Use rand() to simulate the roll of two dice, that is generate two random integers between 1 and 6 inclusive, add them together, and use that sum minus two to index an array to accumulate the count of how many times each result occurred for 10,000 rolls of the two dice.

C++ problem 2 dice roll?
The only one answer is the best one even if it doesn't answers the question. Right?

community survey

No comments:

Post a Comment