home *** CD-ROM | disk | FTP | other *** search
/ Chip 1995 March / CHIP3.mdf / programm / prog2 / comments.ada < prev    next >
Encoding:
Text File  |  1991-07-01  |  907 b   |  30 lines

  1. -- Comments can be written prior to the start of the program if
  2. --  you desire, or nearly anywhere within a program.
  3.  
  4. with Text_IO;   -- This is a comment because it follows 2 dashes
  5. use Text_IO;    -- This is another comment
  6.  
  7. procedure Comments is    -- Comments can start anywhere on the line
  8.                          -- but they end at the end of the line.
  9. begin
  10.  
  11.    Put("This program illustrates the use ");  -- Text output
  12.    Put("of comments.");                       -- More text output
  13.                                               -- Blank program line
  14.    New_Line;                                  -- CR/LF to monitor
  15.  
  16. -- Put("This is not an output statement, it is a comment.");
  17.  
  18. end Comments;
  19. -- Comments can even
  20.         -- be written after the
  21.                  -- program is complete.
  22.  
  23.  
  24.  
  25.  
  26. -- Result of execution
  27.  
  28. -- This program illustrates the use of comments.
  29.  
  30.