Else If Practice Exercise
Video Summary: https://youtu.be/LLaMhgTmXEY
Consider the solution to a previous exercise that generated two dice rolls:
In this program, there are three possible outcomes:
- Player one rolls a higher value than player two
- The players roll the same value
- Player two rolls a higher value than player one
Add control so that the program outputs which player won, or if there was a draw. When you are done, your output might look like this:
Player one rolled 1
Player two rolled 3
Player two wins!
Player two rolled 3
Player two wins!