The Modula-2 Programming Language

Hello world! Example Program


Click below to go directly to a specific section:
Description | Source Code | Sample Run | Program Notes

Description

This program prints the message "Hello world!" using the Modula-2 programming language.

Source Code


MODULE PrintHelloWorld;

(*This program prints "Hello world!" on the standard output device*)

FROM InOut IMPORT WriteString, WriteLn;

BEGIN
	WriteString('Hello world!');
	WriteLn;
END PrintHelloWorld.


Sample Run

Hello world!


Program Notes

This program was written with the help of Modula-2 Text and Reference by John Moore and Kenneth McKay. It was compiled, tested, and run by Modula-2 compiler version 2.0a.
[Back] [Home]

Last modified: 05:00 PM on 11/20/1996