Reading “Modern Fortran Explained”.

1. Intro

Modern Fortran is quite an advanced language, which is still largely compatible with the old Fortran from the 50s.

It has a very rich (and it is not a good thing) syntax.

2. Comments are starting from ’!’

! Hello, this is a comment
print *, "Hello, world"
Hello, world

3. Test 2

program main
use, intrinsic :: iso_fortran_env, only: output_unit
print *, "Hello, world"
end program main
Hello, world