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

 
Output of file : LASTPROG.MOD contained in archive : M2TUTOR.ZIP
(* Chapter 7 - Program 3 *)
MODULE LastProg;

FROM InOut IMPORT WriteString, WriteLn;

PROCEDURE Dummy;
BEGIN
END Dummy;

VAR Index : CARDINAL;
TYPE Stuff = ARRAY[34..55] OF CHAR;

PROCEDURE Smart;
BEGIN
END Smart;

CONST Number = 120;
TYPE TypeOf = ARRAY[1..Number] OF Stuff;
CONST Neater = -345;
VAR Count23 : TypeOf;
Counter : INTEGER;

BEGIN
WriteString("This is really a stupid program.");
WriteLn;
END LastProg.




(* Result of execution

This is really a stupid program.

*)



  3 Responses to “Category : Modula II Source Code
Archive   : M2TUTOR.ZIP
Filename : LASTPROG.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/