Question: 5. Write a program that rolles three dies with six sides. Next, the program will ask the user to reroll one of the three dies.

5. Write a program that rolles three dies with six sides. Next, the program will ask the user to reroll one of the three dies. When all dies are equal to the same number, the program will tell the user "You win" and exit the program. The program should also update the user with how many dies he/she has rerolled (in total) before each reroll. The user should also be able to quit the game at any time by selectinga sentinel value of "-1". (nsem g c prog rayn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
