i am trying to write a program that is like a simple game. the program picks a number at random, you try to guess this number, and with each guess the program tells you if you are too low or too high. it also counts the number of guesses that it take you before you guess correctly. im not sure where i messed up on this program but if anyone knows thank you in advance for your help.
posted 10 years ago
one other thing, i dont know why, but i am getting an error of illegal start of type on my while statement. i copied it directly from a previous program that worked, i dont understand why it isnt working.