10 PRINT "I'm thinking of a number between 1 and 100"
15 C=0
19 X=RND(-TI)
20 X=INT(RND(1)*100+1)
25 G=0
30 PRINT "GUESS";:INPUT G
40 IF G<=0 OR G>100 OR G<>INT(G) THEN PRINT "TRY AGAIN":GOTO 30
50 C=C+1
60 IF G=X THEN PRINT "YOU GUESSED IN "C" TRIES":GOTO 10
70 IF G<X THEN PRINT "TOO LOW, TRY HIGHER"
80 IF G>X THEN PRINT "TOO HIGH, TRY LOWER"
90 GOTO 30
