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}}
{{works with|ASIC}}
<syntaxhighlight lang="qbasic">i = 1024
while i > 0
print i
i = i / 2
wend</syntaxhighlight>
 
==={{header|Applesoft BASIC}}===
<syntaxhighlight lang="applesoft basic"> 10 I% = 1024
Line 610 ⟶ 603:
 
==={{header|ASIC}}===
Look also [[#BASIC|BASIC]].
<syntaxhighlight lang="basic">
REM Loops/While
Line 638 ⟶ 630:
 
==={{header|BaCon}}===
Look also [[#BASIC|BASIC]].
<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
whileWHILE i > 0
PRINT i
i = i /\ 2
wendWEND</syntaxhighlight>
 
==={{header|Run BASIC}}===
511

edits