Loops/While: Difference between revisions

Content added Content deleted
Line 248:
i = i / 2
WEND</lang>
 
==={{header|Commodore BASIC}}===
There is no WHILE construct in Commodore BASIC. A GOTO construct is used instead. Also, an integer variable name has a % sign as its suffix.
<lang gwbasic>10 N% = 1024
20 IF N% = 0 THEN 60
30 PRINT N%
40 N% = N%/2
50 GOTO 20
60 END</lang>
 
=={{header|BBC BASIC}}==