Loops/While: Difference between revisions

Content added Content deleted
No edit summary
imported>J7M
(Add SmallBASIC example)
Line 1,046: Line 1,046:
40 LET I=INT (I/2)
40 LET I=INT (I/2)
50 GOTO 20</syntaxhighlight>
50 GOTO 20</syntaxhighlight>

==={{header|SmallBASIC}}===
<syntaxhighlight lang="qbasic">
i = 1024
WHILE i > 0
PRINT i
i = i \ 2 ' Using \ for integer division instead of /
WEND</syntaxhighlight>


==={{header|TI-83 BASIC}}===
==={{header|TI-83 BASIC}}===