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

 
Output of file : FIRSTEX.MOD contained in archive : M2TUTOR.ZIP
MODULE FirstEx;

FROM InOut IMPORT WriteLn, WriteString, WriteCard;

VAR Index : CARDINAL;

BEGIN

WriteString("This is our first example program");
WriteLn;
WriteLn;
FOR Index := 1 TO 12 DO
WriteString("The value of the index is now ");
WriteCard(Index,3);
WriteLn;
END

END FirstEx.




(* Result of execution

This is our first example program

The value of the index is now 1
The value of the index is now 2
The value of the index is now 3
The value of the index is now 4
The value of the index is now 5
The value of the index is now 6
The value of the index is now 7
The value of the index is now 8
The value of the index is now 9
The value of the index is now 10
The value of the index is now 11
The value of the index is now 12

*)


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