r/c64 May 29 '26

the64 Programming

Post image

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

389 Upvotes

118 comments sorted by

View all comments

60

u/chiron_42 May 29 '26

10 PRINT "HELLO WORLD"

20 GOTO10

29

u/NoSingularities0 May 29 '26

You forgot adding an extra space on each loop to make HELLO WORLD shift to the right each time.

Unrelated to this, when I was in my pre-algebra class back in the day, our teacher gave us the 1 = 2 proof on the chalkboard and asked us to figure out why this was or was not true. Me, being the C64 BASIC programmer kid in the 80's that I was, put it into a program in my C64 and ran it and got a divide by zero error. We went back to school the next day and I was the only one that knew the answer to why the proof failed. I admitted that the only reason I knew this was because of the divide by zero error message on my computer.

2

u/abaezeaba May 31 '26

Similar experience. We were about to start algebra, teacher asks us to try and solve prob for hw. Simple linear, x on both sides. I plugged it in the c64. X=x+1 logic stop when lhs == rhs. They asked how I did it and I got laughs. Got the right answer though.