Qbasic Tutorial for beginners and children (Under Construction)


The WHILE WEND statement

The WHILE WEND statement is another way to execute a loop. The DO LOOP statement, however, provides a better way to execute loops.

Code Output
DIM x AS INTEGER
x = 0
WHILE x < 5
   x = x + 1
   PRINT x
WEND

1

2

3

4

5


[ Previous Index Next ]


pages viewed since January  19 2002