Created
April 1, 2010 17:18
-
-
Save natebenes/352093 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGICAL FUNCTION aprilFools(day, month) | |
INTEGER :: day, month | |
IF ((day > 31) .OR. (day < 1)) THEN | |
! Invalid input | |
day = 1 | |
END IF | |
IF ((day == 1) .AND. (month == 4)) THEN | |
aprilFools = .true. | |
ELSE | |
aprilFools = .false. | |
END IF | |
END FUNCTION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment