home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PP002.ZIP / EX2.PRG < prev    next >
Text File  |  1991-04-11  |  553b  |  15 lines

  1. Program Example2;
  2. { This is a sample program for the SIMPLE+ compiler
  3.   Requires version 0.12 or later
  4.  
  5.   Comments go inside braces...
  6. }
  7. VAR                   { variable definitions                          }
  8.   a,b,c : integer;    { all variables are assumed integer (for now)   }
  9. Begin                 { begin..end  - block statement                 }
  10.   a := 1;
  11.   b := 99;
  12.   for c := a to b do
  13.     WriteLn(c);       { write value of a, followed by CR/LF           }
  14. end.                  { period ends program                           }
  15.