home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / m / mod2tutr.zip / EXAMPLES.ZIP / CH02E3.MOD < prev    next >
Text File  |  1989-01-18  |  843b  |  34 lines

  1.                             (* Chapter 2 - Programming exercise 3 *)
  2. (* This is a comment that is prior to the start of the
  3.    program itself. *)
  4.  
  5. MODULE CH02E3;
  6.  
  7. FROM InOut IMPORT(* Added comment *)WriteLn, WriteString;
  8.  
  9.                      (* This is a block
  10.                         of comments that
  11.                         illustrate one way
  12.                         to format some of
  13.                         your comments.    *)
  14.  
  15. BEGIN  (* This is the beginning of the main program *)
  16.  
  17.    WriteString("This is a comments demo program.");
  18.    WriteLn;
  19. (* WriteString("This will not be output.");
  20.    WriteString("Nor will this."); *)
  21.  
  22. END CH02E3.  (* This is the end of the main program *)
  23.  
  24. (* This is a comment after the end of the program *)
  25.  
  26.  
  27.  
  28. (* Result of execution
  29.  
  30. This is a comments demo program.
  31.  
  32. *)
  33.  
  34.