in reply to Re: Difference between subroutine and functions
in thread Difference between subroutine and functions
function and subroutine are subprograms used in fortran.
function subprograms are used to compute a single value,while subroutine subprogram are used to compute several values or to perform task.
main difference between a subroutine and a function as follows:
1. No value is associated with the name of a subroutine,while the name of a function subprogram must have a value, numerical or logical.
|
|---|