Sample in Pascal
This is an example of pascal programming
Program HelloWorld.Pas
Program HelloWorld;
uses crt;
Begin
Clrscr;
Writeln('Hello World');
Readln;
end
Inside
program Helloworld; : Program Declaration, Helloworld is the name of the Program
Uses Crt; : Library Declaration, Crt Library Name Required
Begin: Begin the command
Clrscr; Clear Screen Commands
Writeln ('Hello World'); : On Screen Display, On Screen Display ('_')
Readln; : stop the screen until the user press enter
End. End the Program
Other Commands
TextBackground (White); screen color change, color name in (_)
TextColor (White); Change screen color, color name in (_)
NOTE: All Commands Must Have; before ending the Or statement before concluding
the program declaration Or library. (Except the Begin command and other commands)