Hello world! Example Program


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

Description

This program demonstrates the text output function of the ALGOL programming language by displaying the message "Hello world!". This code runs on a Unisys (Burroughs) A-series mainframe.

Source Code


// the main program (this is a comment)

BEGIN
FILE F (KIND=REMOTE);
EBCDIC ARRAY E [0:11];
REPLACE E BY "HELLO WORLD!";
WHILE TRUE DO
  BEGIN
  WRITE (F, *, E);
  END;
END.


Program Notes

This program has NOT been tested due to the inability to locate the necessary compiler. It is posted here just to give you an example of what ALGOL source code looks like. Compare it to the other example listed to see the syntactic differences that exist in the language.
[Back] [Home]

Last modified: 08:52 PM on 11/21/1996