Page 1 of 1

Stage 5 Include code to determine whether the player wins or loses and display the result to the screen. That is, determ

Posted: Thu May 05, 2022 12:57 pm
by answerhappygod
Stage 5 Include Code To Determine Whether The Player Wins Or Loses And Display The Result To The Screen That Is Determ 1
Stage 5 Include Code To Determine Whether The Player Wins Or Loses And Display The Result To The Screen That Is Determ 1 (83.52 KiB) Viewed 33 times
That C language question, we will get questions as well as
output of code
just we have to write the code of these questions and get these
output above
Stage 5 Include code to determine whether the player wins or loses and display the result to the screen. That is, determine whether die 3 numerically falls in between the first two. If the third die rolled numerically falls between the first two rolled, the player wins. If the third die rolled numerically falls outside of the first two rolled, the player loses. If the third die rolled is the same as one of the first two rolled, (for example: the player has a 3 and 8, and the third die rolled is another 3), the player has 'hit the post'. The player loses. 7 of 24 Sample output 1: Die 1: 2 Die 2: 8 Not the same, let's play! Die 3: 5 You win! *** Thanks for playing! ***
Sample output 2: Die 1: 2 Die 2: 8 Not the same, let's play! Die 3: 9 *** *** Sorry You lose! Thanks for playing! Sample output 3: Die 1: 2 Die 2: 8 Not the same, let's play! Die 3: 2 *** You hit the post You lose! *** Thanks for playing!