Skip to main content

1.7) First Code In Fortran 77


As mentioned, you may at times have to work on code developed by others in Fortran 77. Some programs are so large that converting them to newer versions is a very time consuming and expensive task. So it is best you learn some Fortran 77 just in case.

Because Fortran 77 dates back to times when computer programs were written on punch cards, it has a strict line format (this line format requirement is not part of Fortran 95 you will be pleased to hear). In Fortran 77 you can only write your program using up to 80 columns on each line and coding has to fit within 72 columns (with comments from columns 73 to 80.

I would recommend watching the video to see it explained rather than first reading through the explanations on the coming pages.

This video explains the column structure used in Fortran 77.