Question: Build a program that does this using C#: Initializes a random number to a value between 1 and 10, inclusive. Repeatedly asks the user to
Build a program that does this using C#:
- Initializes a random number to a value between 1 and 10, inclusive.
- Repeatedly asks the user to guess what the number is until the number is guessed.
- If the guess is higher than the number, tell the user their guess is too high and that they should guess again.
- If the guess is lower than the number, tell the user their guess is too low and that they should guess again.
- If the guess is equal to the number, tell them:
- That their guess was correct,
- How many guesses they made,
- Ask do they want to try again.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
