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

 
Output of file : CH05E1.MOD contained in archive : M2TUTOR.ZIP
(* Chapter 5 - Programming exercise 1 *)
MODULE CH05E1;

FROM InOut IMPORT WriteString, WriteLn;

PROCEDURE ListMyName;
BEGIN
WriteString("John Doe");
WriteLn;
END ListMyName;

PROCEDURE ListMyAddress;
BEGIN
WriteString("1234 Main Street");
WriteLn;
END ListMyAddress;

PROCEDURE ListMyState;
BEGIN
WriteString("Littleburg, NY 01254");
WriteLn;
END ListMyState;

BEGIN
ListMyName;
ListMyAddress;
ListMyState;
END CH05E1.




(* Result of execution

John Doe
1234 Main Street
Littleburg, NY 01254

*)



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