| United States-English |
|
|
|
![]() |
HP Fortran Compiler for HP-UX: HP Fortran Programmer's Reference > Chapter 7 Program
units and proceduresMain program |
|
A main program is a program unit. There must be exactly one main program in an executable program. Execution always begins with the main program. The main program can determine the overall design and structure of the complete program and often performs various computations by referencing procedures. A program may consist of the main program alone, in which case all the program logic is contained within it.
Table 7-1 Specification statements
Table 7-2 Executable statements
The only required component of a main program unit is the END statement. The following is therefore a valid, compilable program:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||