Re: Favorite color
codeman38, on host 209.172.224.34
Wednesday, November 28, 2001, at 09:17:54
Re: Favorite color posted by Don the Monkeyman on Wednesday, November 28, 2001, at 08:43:38:
> > > -- codeman"10 PRINT "HELLO WORLD > > ";:GOTO 10"38 > > > > I'm no programmer, but that looks like > > something I would have written in my > > Commodore 64 computer class in eighth > > grade. > > > > Gri"_RUN_ Magazine, anyone?"shny > > If I remember correctly, you needed a line > number for every line on the C64, so it would > be > > 10 PRINT "HELLO WORLD" > 20 GOTO 10
Nope...just checked using a C64 emulator, and indeed you can use colons as shorthand to put multiple statements on one line. So the statement I wrote is basically equivalent to your two-line program.
-- codeman"spent way too much time playing with BASIC as a kid"38
|
Post a Reply