home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ob140os2.zip / WHILDEMO.B < prev   
Text File  |  1997-09-12  |  152b  |  11 lines

  1. * This shows the use of WHILE/DO/ENDWHILE
  2.  
  3.  DIM X AS LONG
  4.  
  5.  X=0
  6.  WHILE X<10 DO\ The 'DO' is optional
  7.         INC X
  8.         PRINT X
  9.  ENDWHILE
  10.  
  11.