Programming Manual for Citizen BASIC Interpreter - MaRCo
Programming Manual for Citizen BASIC Interpreter - MaRCo
Programming Manual for Citizen BASIC Interpreter - MaRCo
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Citizen</strong> <strong>BASIC</strong> <strong>Interpreter</strong><br />
UNTIL conditional expression<br />
【E.g.】<br />
>LIST<br />
1000 T=0<br />
1010 C=1<br />
1020 REPEAT<br />
1030 T=T+C<br />
1040 C=C+1<br />
1050 UNTIL C>10<br />
1060 PRINT T<br />
Ready<br />
>RUN<br />
55<br />
Ready<br />
3.10.8 WHILE – WEND Loop<br />
【Explanation】<br />
This loop executes the statements between the WHILE and WEND loops repeating from<br />
the WHILE statement to the WEND statement while the result of the conditional<br />
expression is true.<br />
【Format】<br />
WHILE conditional expression<br />
Statement<br />
WEND<br />
【E.g.】<br />
>LIST<br />
1000 T=0<br />
1010 C=1<br />
1020 WHILE CRUN<br />
55<br />
Ready<br />
3.10.9 DO – LOOP Loop<br />
【Explanation】<br />
This loop repeatedly executes the lines from the DO statement to the LOOP statement<br />
until their conditions are fulfilled.<br />
【Format】<br />
1<br />
DO WHILE conditional expression<br />
Statement<br />
LOOP<br />
2<br />
DO UNTIL conditional expression<br />
Statement<br />
LOOP<br />
3<br />
DO<br />
Statement<br />
32