Question: what are subroutines in fortran?
Answer: A Fortran subroutine is a block of code that performs some operation on the input variables, and as a result of calling the subroutine, the input variables are modified. ... In Fortran, functions and subroutines are different: the former returns a value while the latter does not. Functions are simpler than subroutines.