The Commodore 64 Programmer’s Reference Guide. I skimmed through it with grand visions of writing my own game. I was eight years old, so a lot of the math was over my head, but I remember learning about strings and floating-point numbers. I typed a lot of the examples into the computer, including this one from page 18:
10 PRINT "YOUR NAME:":INPUT N$
20 PRINT "HELLO," N$
After testing it out, I yelled for my sister and proudly asked her to enter RUN
.
A few pages later were some examples using IF
and THEN
, which gave me an idea. I made some modifications and asked her to run it again. This was the program:
10 PRINT "YOUR NAME:":INPUT N$
20 PRINT "HELLO," N$
30 IF N$="JANELLE" THEN PRINT "THAT IS A STUPID NAME"
You can probably guess my sister’s name. That was the best code I will ever write.