Code Examples
For more details on this topic, see Wikibooks:Fortran/Fortran examples.The following program illustrates dynamic memory allocation and array-based operations, two features introduced with Fortran 90. Particularly noteworthy is the absence of DO
loops and IF
/THEN
statements in manipulating the array; mathematical operations are applied to the array as a whole. Also apparent is the use of descriptive variable names and general code formatting that conform with contemporary programming style. This example computes an average over data entered interactively.
Read more about this topic: Fortran
Famous quotes containing the words code and/or examples:
“Acknowledge your will and speak to us all, This alone is what I will to be! Hang your own penal code up above you: we want to be its enforcers!”
—Friedrich Nietzsche (18441900)
“Histories are more full of examples of the fidelity of dogs than of friends.”
—Alexander Pope (16881744)