If they are arguments of a function or subroutine they will have the size of the array which is the actual argument. All of the above arithmetic operations and intrinsic functions can be applied to an array and are processed element by element. Note that the parentheses around condition cannot be omitted. The else part may be omitted. The exit statement jumps to the statement after the next end do statement.
Subroutines end with end subroutine .
Note that the type of name has also to be declared in the calling program unless the function is in a module. In the body of the function a value must be assigned to the variable name . Functions end with the end function . Changing the value of an argument in the subroutine changes the value of the corresponding variable in the calling program. I recommend that you put your functions and subroutines in a module and use this module in the main program.