PROGRAM
SayHello(INPUT, OUTPUT)
BEGIN
WHILE (TRUE)
BEGIN
WRITELN('Hello World');
END;
END.
I think what you wanted to say was this:
PROGRAM SayHello(OUTPUT);
BEGIN
WRITELN('Hello World');
END.
The BASIC program printed "Hello World" over and over,
so the WHILE loop is used do the same thing in the Pascal
program. Your program just prints "Hello World" once.
--
Eric Dittman
dittman(a)dittman.net
School Zones: Man's attempt to thwart natural selection.