Skip to main content

1.10) Example Program Written In Fortran 77


1	      program example2
2	      ! comments can go here like version and other info
3	      print *, 'This is my first code running'
4	      end

Example first code that prints This is my first code running when compiled and run. Note that there are six spaces left blank at the start of each line in Fortran 77, as already explained.
The video on the next page illustrates the Fortran 77 code in example 2 being compiled.