Execute HQ9+: Difference between revisions
m
→{{header|NS-HUBASIC}}: The code no longer uses "X$=(X or Y)$+CHR(13) commands, but still works correctly, and any THEN or GOTO commands are more readable, as one space is now before them for each command, compared to the previous no spaces.
Childishbeat (talk | contribs) m (→{{header|NS-HUBASIC}}: Further optimizations to the code have been made.) |
Childishbeat (talk | contribs) m (→{{header|NS-HUBASIC}}: The code no longer uses "X$=(X or Y)$+CHR(13) commands, but still works correctly, and any THEN or GOTO commands are more readable, as one space is now before them for each command, compared to the previous no spaces.) |
||
Line 1,328:
=={{header|NS-HUBASIC}}==
<lang NS-HUBASIC>10 INPUT "INPUT HQ9+ CODE: ",I$
20
30
40
50
70 IF C$=
▲80 IF C$="H"THEN PRINT "HELLO, WORLD!"
90 IF C$
100 FOR B=99 TO 1 STEP -1
▲100 A=A+(C$="+")
110
120
130 PRINT
140 PRINT
150 PRINT
170
▲180 NEXT
=={{header|OCaml}}==
|