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.
Comments are starting from ’!’
! Hello, this is a comment print *, "Hello, world"
program main use, intrinsic :: iso_fortran_env, only: output_unit print *, "Hello, world" end program main