Loops/Continue: Difference between revisions

Loops/Continue en True BASIC
No edit summary
(Loops/Continue en True BASIC)
Line 373:
 
Ti-89 lacks support for multi-argument display command or controlling the print position so that one can print several data on the same line. The display command (Disp) only accepts one argument and prints it on a single line (causing a line a feed at the end, so that the next Disp command will print in the next line). The solution is appending data to a string (s), using the concatenator operator (&), by converting numbers to strings, and then printing the string at the end of the line.
 
==={{header|True BASIC}}===
<lang basic>FOR i = 1 TO 10
PRINT STR$(i);
IF REMAINDER(i, 5) = 0 THEN
PRINT
ELSE !No existe el comando CONTINUE
PRINT ", ";
END IF
NEXT i
PRINT
END</lang>
 
==={{header|VB-DOS, PDS}}===
2,123

edits