This program, saved to a file named HelloWorld.dpr, compiles to a console application that prints "Hello World" to the console:
program HelloWorld; {$APPTYPE CONSOLE} begin WriteLn('Hello World'); end.