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

 
Output of file : CH04E2.MOD contained in archive : M2TUTOR.ZIP
(* Chapter 4 - Programming exercise 2 *)
MODULE CH04E2;

FROM InOut IMPORT WriteString, WriteInt, WriteLn;

VAR Index : INTEGER;

BEGIN

FOR Index := 1 TO 12 DO
WriteInt(Index,5);
IF Index = 10 THEN
WriteString(" October is my birthday month");
END;
WriteLn;
END;

END CH04E2.




(* Result of execution

1
2
3
4
5
6
7
8
9
10 October is my birthday month
11
12

*)




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