Title here
Summary here
Our first program will print the classic “hello world” message. Here’s the full source code.
To run the program, compile the code into an executable file using gfortran
, and then execute it.
Sometimes we’ll want to build our programs into binaries that can be executed directly. In Fortran, we usually compile the source file directly into an executable.
First, compile the code:
We can then execute the built binary directly:
Now that we can run and build basic Fortran programs, let’s learn more about the language.