Jensen/Wirth Pascal required the "main" at the end, afther the local procedures/functions.

J/W Pascal didn't support the concept of an include file either.

Turbo pascal took care of those...er, "oversights"....

[Edit: clarified what I was referring to]