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#:

  1. Initializes a random number to a value between 1 and 10, inclusive.
  2. Repeatedly asks the user to guess what the number is until the number is guessed.
    1. If the guess is higher than the number, tell the user their guess is too high and that they should guess again.
    2. If the guess is lower than the number, tell the user their guess is too low and that they should guess again.
    3. If the guess is equal to the number, tell them:
      1. That their guess was correct,
      2. How many guesses they made,
      3. 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!