home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / bsd_srcs / share / doc / ps1 / 04.pascal / comments.p < prev    next >
Encoding:
Text File  |  1990-06-07  |  474 b   |  19 lines

  1. { This is a left marginal comment. }
  2. program hello(output);
  3. var i : integer; {This is a trailing comment}
  4. j : integer;    {This is a right marginal comment}
  5. k : array [ 1..10] of array [1..10] of integer;    {Marginal, but past the margin}
  6. {
  7.   An aligned, multi-line comment
  8.   which explains what this program is
  9.   all about
  10. }
  11. begin
  12. i := 1; {Trailing i comment}
  13. {A left marginal comment}
  14.  {An aligned comment}
  15. j := 1;        {Right marginal comment}
  16. k[1] := 1;
  17. writeln(i, j, k[1])
  18. end.
  19.