Follow the tutorial here - https://pranabdas.github.io/fortran/
Introductory tutorials on FORTRAN programming.