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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started