Loops/Continue: Difference between revisions
Content added Content deleted
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
|||
Line 244: | Line 244: | ||
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. |
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|VB-DOS, PDS}}=== |
|||
<lang BASIC> |
|||
OPTION EXPLICIT |
|||
DIM i AS INTEGER |
|||
CLS |
|||
FOR i = 1 TO 10 |
|||
PRINT STR$(i); |
|||
IF (i MOD 5) THEN PRINT ","; ELSE PRINT |
|||
NEXT i |
|||
END</lang> |
|||
==={{header|Visual Basic .NET}}=== |
==={{header|Visual Basic .NET}}=== |