Fortan
Fortan
Contents
1Naming
2History
o 2.1FORTRAN
2.1.1Fixed layout and punched cards
o 2.2FORTRAN II
2.2.1Simple FORTRAN II program
o 2.3FORTRAN III
o 2.4IBM 1401 FORTRAN
o 2.5FORTRAN IV
o 2.6FORTRAN 66
o 2.7FORTRAN 77
2.7.1Variants: Minnesota FORTRAN
o 2.8Transition to ANSI Standard Fortran
o 2.9Fortran 90
2.9.1Obsolescence and deletions
2.9.2"Hello, World!" example
o 2.10Fortran 95
2.10.1Conditional compilation and varying length strings
o 2.11Fortran 2003
o 2.12Fortran 2008
o 2.13Fortran 2018
3Science and engineering
4Language features
5Portability
6Variants
o 6.1Fortran 5
o 6.2FORTRAN V
o 6.3Fortran 6
o 6.4Specific variants
6.4.1FOR TRANSIT for the IBM 650
o 6.5Fortran-based languages
7Code examples
8Humor
9See also
10References
11Further reading
12External links
Naming[edit]
The names of earlier versions of the language through FORTRAN 77 were conventionally
spelled in all-capitals (FORTRAN 77 was the last version in which the use of lowercase
letters in keywords was strictly non-standard).[citation needed] The capitalization has been dropped in
referring to newer versions beginning with Fortran 90. The official language standards now
refer to the language as "Fortran" rather than all-caps "FORTRAN".
History[edit]
FORTRAN[edit]
The initial release of FORTRAN for the IBM 704 contained 32 statements, including:
FORTRAN code on a punched card, showing the specialized uses of columns 1–5, 6 and 73–80
1 to 5 were the label field: a sequence of digits here was taken as a label for use in
DO or control statements such as GO TO and IF, or to identify a FORMAT statement
referred to in a WRITE or READ statement. Leading zeros are ignored and 0 is not a
valid label number.
6 was a continuation field: a character other than a blank or a zero here caused the
card to be taken as a continuation of the statement on the prior card. The continuation
cards were usually numbered 1, 2, etc. and the starting card might therefore have zero in
its continuation column—which is not a continuation of its preceding card.
7 to 72 served as the statement field.
73 to 80 were ignored (the IBM 704's card reader only used 72 columns).[18]
Columns 73 to 80 could therefore be used for identification information, such as punching a