Read this by considering Pascal Programming Part-2
1. FIRST LINE
*First line Program heading.Is start with keyword PROGRAM followed by space program identifier (testpro)
*Identifier is a user define word.
*Program name is followed by the word OUTPUT contained parentheses and terminate with a semicolon.
*The keyword OUTPUT tells the compiler that this is going to produce output(such as writing to the screen)which is the counterpart of INPUT(such as reading on keyboard).
*The INPUT & OUTPUT are called file parameters.
*The program may perform both INPUT & OUTPUT,which is case the file parameters take the form.
2.SECOND LINE
USES WINCRT ;= allows read,write, courser movement etc.
NOTE
1.Put semicolon (;
) at the end of the each statement.
2.Put".
"End of the program(END.).
3.Write all statements inside the body BEGIN & END