Question: C++ Design and implement a program that rolls two dice. Ask the user to input a number between 2 and 12. Then, roll your dice
C++ Design and implement a program that rolls two dice. Ask the user to input a number between 2 and 12. Then, roll your dice by using a random function to generate a random number representing one of the sides. Output the result of each die and the combined total of the two sides. Continue rolling the dice until the total equals what the user entered. Output the number of tries it took.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
