Loops/While: Difference between revisions
→{{header|BASIC}}: Clarified implementation of BASIC.
(DIalects of BASIC moved to the BASIC section.) |
(→{{header|BASIC}}: Clarified implementation of BASIC.) |
||
Line 597:
=={{header|BASIC}}==
In general, the <code>WHILE</code>-<code>WEND</code> statement is used or it is simulated with a construct with conditional jump.
{{works with|QuickBasic|4.5}}▼
<syntaxhighlight lang="qbasic">i = 1024▼
while i > 0▼
i = i / 2▼
wend</syntaxhighlight>▼
==={{header|Applesoft BASIC}}===
<syntaxhighlight lang="applesoft basic"> 10 I% = 1024
Line 610 ⟶ 603:
==={{header|ASIC}}===
<syntaxhighlight lang="basic">
REM Loops/While
Line 638 ⟶ 630:
==={{header|BaCon}}===
<syntaxhighlight lang="freebasic">
i = 1024
Line 896 ⟶ 887:
n = n \ 2
Wend</syntaxhighlight>
==={{header|QuickBASIC}}===
▲{{works with|QuickBasic|4.5}}
▲<syntaxhighlight lang="qbasic">i = 1024
PRINT i
==={{header|Run BASIC}}===
|