Key Points
A Trivial Program
- Fortran programs start with the
program <label>statement. - Fortran programs end with the
end program <label>statement. - Always use
implicit noneto prevent implicit typing for variables. - Fortran comments start with
!. - The
-oflag specifies the name of the compiled executable:<compiler_command> -o <executable_name> <source_file.f90>.