Category : Modula II Source Code
Archive   : M2TUTOR.ZIP
Filename : CH02E3.MOD

 
Output of file : CH02E3.MOD contained in archive : M2TUTOR.ZIP
(* Chapter 2 - Programming exercise 3 *)
(* This is a comment that is prior to the start of the
program itself. *)

MODULE CH02E3;

FROM InOut IMPORT(* Added comment *)WriteLn, WriteString;

(* This is a block
of comments that
illustrate one way
to format some of
your comments. *)

BEGIN (* This is the beginning of the main program *)

WriteString("This is a comments demo program.");
WriteLn;
(* WriteString("This will not be output.");
WriteString("Nor will this."); *)

END CH02E3. (* This is the end of the main program *)

(* This is a comment after the end of the program *)



(* Result of execution

This is a comments demo program.

*)



  3 Responses to “Category : Modula II Source Code
Archive   : M2TUTOR.ZIP
Filename : CH02E3.MOD

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/