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 none to prevent implicit typing for variables.
  • Fortran comments start with !.
  • The -o flag specifies the name of the compiled executable: <compiler_command> -o <executable_name> <source_file.f90>.