Loops/Continue: Difference between revisions

Content added Content deleted
Line 665:
For i,1,10
s&string(i)→s
If (mod(i,5)=0) Then
Disp s
""→s
Line 674:
EndPrgm
</lang>
 
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.<br>
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).<br>
The solution is appending data to a string (s), using the concatenator operator (&) and by converting numbers to strings, and then print the string at the end of the line.<br>
 
=={{header|UnixPipes}}==