Fortran Expression and I/O Statement
 
Fortran Statement Layout
 
The layout can be easily understand by the given table:
Columns 1-5 Label
Column 6 Continuation
Columns 7-72 Fortran statements
Columns 73-80 Programmer use
Comment statement - C in column 1 comment in columns 2-72
These are the steps to make a program in Fortran.
Example:
 
This program is same as the previous. But in this program a new $FREEFORM is added. The use of $FREEFORM makes freeform to the statements, means now you can write any program from any column or line. The comment line is written in any line by using '!' sign as shown in the above program.
Output:
 
 
Click here on how to create and run the FORTRAN programto view animated presentation.