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.
Joined: Sep 16, 2009
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.