comments.pas 553 B

12345678910111213141516171819
  1. { Several of the many ways in which you can include comments in your program. }
  2. program comments;
  3. { This is a
  4. multiline comment. }
  5. begin
  6. writeln{inline comment}('Line 1');
  7. writeln('Line 2') { Another
  8. multiline
  9. comment };
  10. (* Another style of comment *)writeln('Line 3');
  11. writeln((* Another inline comment. *)'Line 4');
  12. writeln('Line 5')(* Finally, another comment. *);
  13. (* Nested comments of the same type don't work
  14. (* *) writeln('Line 6'); (* *)
  15. (* Nested comments of different types work.
  16. { } writeln('Line 7 no'); (* *)
  17. end.