Re:Apple ][+ in HTML5
by pud on Sunday October 28, 2012 @07:00AM
(#4708665)
Notes: Use ^C to stop it. Type LIST to see the program you wrote. If you screw up a line, just type the line number and hit <return> to delete that line.
[ Parent
| on HN ]
10 X=1
20 D=1
30 FOR Y=1 TO X
40 PRINT " ";
50 NEXT Y
60 PRINT "HELLO"
70 IF X=0 OR X=34 THEN D=D*-1
80 X=X+D
90 GOTO 30 5 PRINT "WHAT'S YOUR FIRST NAME?"
7 INPUT NAME$
10 X=1
20 D=1
30 FOR Y=1 TO X
40 PRINT " ";
50 NEXT Y
60 PRINT NAME$
70 IF X=0 OR X=39-LEN(NAME$) THEN D=D*-1
80 X=X+D
90 GOTO 30
RUNHow do you type quotes? I stumbled on the fact that my keyboard's "minus" key outputs an equals sign, but quotes I can't get. I grew up on the C64, not this one.
Just typing a quote (single or double) in the usual way works fine for me.
70 IF X=1 THEN LEFT=0
Makes for a more symmetric pattern.