The Prolog Programming Language

Hello world! Example Program


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

Description

This program demonstrates the text output function of the Sample programming language by displaying the message "Hello world!".

Source Code


// the main program (this is a comment)
Hello:-
	nl,
	write('Hello world!' ).
}

[Back] [Home]

Last modified: 03:37 PM on 11/25/1996