Ok this is very simply thought out, but start with this:
Generate random number between 1 - 100
Loop if guess wrong
Guess number (Validate guess is within range)
Wrong guess again
End...
Type: Posts; User: StephenCoyle
Ok this is very simply thought out, but start with this:
Generate random number between 1 - 100
Loop if guess wrong
Guess number (Validate guess is within range)
Wrong guess again
End...
Can I through a spanner in the works. Why are you using the double data type (23.98 etc...). It would be better to use an integer.
Also what happens if the user enters 101 or 249? You would need...