Hey guys im new here and need some help with my coding-random guessing game
no I got the basics but I need to do more, I need an option to ask the user how many games he wants, and to only allow the user 6 tries before he or she loses, also I need the numbers in the range to get smaller and smaller after each guess
im so stuck on this, any help would be great
Re: Hey guys im new here and need some help with my coding-random guessing game
Do not use the continue: statement in the
else if (input > randomNumber)
else if (input < randomNumber)
There is here no reason to use continue since you are not trying to skip past anything. If you write your IF-statements correctly they will not collide somehow, and since you have, dont worry :D.
When trying to solve problems like this, use the debugger, step through the program step by step F11 and you will easily find the solution.
|All times are GMT +5.5. The time now is 02:09.|