Question: Hi. i need help with programming in C# visual studio. how do I answer this question without using while and do loops? This task is

Hi. i need help with programming in C# visual studio. how do I answer this question without using while and do loops?

This task is based on randomizing a secret number between 1 and 100. The user must then guess a number and try to find the hidden value If the number the user writes is too high, it must be stated in the program, and then of course if the number is too low. Since we only get a guess, there is not much of a chance that you will guess correctly. In the next assignment, we will continue to work on this task so that we get new attempts until i succeed. if the number is correct it must be written; " congratulation, u found the right number" in the program.

The secret number should preferably be presented randomly. You can solve this by searching the web for the appropriate code. If you can't get the random number to work, it's fine to write a value directly in the code. For example in C#: int random number = 42

The game itself might not be as exciting without a secret number

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!