Playing cards: Difference between revisions

m
(→‎{{header|Perl}}: ++ smalltalk)
Line 463:
=={{header|Fortran}}==
{{works with|Fortran|90 and later}}
<lang fortran> MODULE Cards
IMPLICIT NONE
Line 528:
END SUBROUTINE Print_deck
END MODULE Cards</lang>
Example use:
<lang fortran> PROGRAM Playing_Cards
USE Cards
Line 540:
CALL Print_deck
END PROGRAM</lang>
This creates a new deck, shuffles it, deals five cards to hand, prints the cards in hand and then prints the cards remaining in the deck.