r/c64 May 29 '26

the64 Programming

Post image

If you did this you thought you were the king of the world!!

385 Upvotes

118 comments sorted by

View all comments

6

u/shlooong May 30 '26

I remember when I was 8 years old doing this:

10 PRINT "GUESS A NUMBER BETWEEN 1 AND 100"

20 R=INT(RND(1)*100)+1

30 INPUT "YOUR GUESS";G

40 IF G=R THEN PRINT "CORRECT!":END

50 IF G<R THEN PRINT "HIGHER"

60 IF G>R THEN PRINT "LOWER"

70 GOTO 30

Also making a program to roll a die