Loops/Foreach: Difference between revisions
Content added Content deleted
Line 435: | Line 435: | ||
AnArray=0,1,2,3,4,5,6,7,8,9,10 |
AnArray=0,1,2,3,4,5,6,7,8,9,10 |
||
'A console only program will work without OPENCONSOLE and |
|||
'CLOSECONSOLE; however, it does not hurt to use them. |
|||
OPENCONSOLE |
|||
FOR X=0 TO 10 |
FOR X=0 TO 10 |
||
PRINT AnArray[X] |
|||
NEXT X |
NEXT X |
||
'keep the console from closing right away. |
|||
DO:UNTIL INKEY$<>"" |
|||
CLOSECONSOLE |
|||
'because this is a console only program. |
|||
END |
|||
</lang> |
</lang> |
||