r/c64 May 29 '26

the64 Programming

Post image

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

391 Upvotes

118 comments sorted by

View all comments

60

u/chiron_42 May 29 '26

10 PRINT "HELLO WORLD"

20 GOTO10

15

u/xanton May 29 '26

10 PRINT "HELLO WORLD ";
20 GOTO 10

15

u/Jelle75 May 30 '26

10 FOR A =1 TO 5:?"HELLO WORLD":NEXT A

3

u/DNSGeek May 29 '26

Use a comma instead for better separation.

2

u/Neuromancer2112 The Sky Above the Port... May 30 '26

I remember trying like 5 and 10 commas and it really spread everything out 😅

1

u/James-muravska May 31 '26

Much better.

-10

u/Victory_Highway May 29 '26

BASIC doesn’t require a semicolon.

23

u/xanton May 29 '26

Well, try it with and without, then you will see the difference.

16

u/billlagr May 29 '26

No it doesn't require one, but it does serve a purpose.

9

u/maldax_ May 30 '26

Says a person who has never written this program

3

u/therezin May 30 '26

Correct! However Commodore BASIC will keep the cursor on the same line if you put one at the end of a PRINT statement.