Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Simulate the rolling of dice: The program should generate two random numbers in the range of 1 through 6 and display them. The program keeps
Simulate the rolling of dice: The program should generate two random numbers in the range of 1 through 6 and display them. The program keeps going until two dice values are the same. Once the two values are the same, display bingo Let the program prompt you to hit enter to roll the dice every time. Use break statement in your program. The resulting program should look like: hit Enter to roll the dice their values are: 4 6 hit Enter to roll the dice their values are: 4 2 hit Enter to roll the dice their values are: 3 3 bingo.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started