Subroutines and Functions

Example

Schematic example:
    PROGRAM play_game

      CALL shuffle_cards
      CALL deal
      CALL play
      CALL display

    END PROGRAM play_game


    SUBROUTINE shuffle_cards
        ...
    END SUBROUTINE shuffle_cards

    SUBROUTINE deal_cards
        ...
    END SUBROUTINE deal_cards

    SUBROUTINE play
        ...
    END SUBROUTINE play

    SUBROUTINE display_cards
        ...
    END SUBROUTINE display_cards


...previousup (conts)next...



About this document:

Produced from the SGML: /home/isd/public_html/_course_fortran_90/_reml_grp/index.reml
On: 10/2/2003 at 10:33:52
Options: reml2 -i noindex -l long -o html -p multiple