Abstract
The aims of this chapter are to introduce:
-
Selection among various courses of action as part of the algorithm.
-
The concepts and statements in Fortran needed to support the above:
-
Logical expressions and logical operators .
-
One or more blocks of statements.
-
-
The if then endif construct .
-
The if then else if endif construct .
-
To introduce the case statement with examples.
-
To introduce the do loop , in three forms with examples, in particular:
-
The iterative do loop .
-
The do while form.
-
The do ...if then exit end do or repeat until form.
-
The cycle statement .
-
The exit statement .
-
Summarizing: as a slow-witted human being I have a very small head and I had better learn to live with it and to respect my limitations and give them full credit, rather than try to ignore them, for the latter vain effort will be punished by failure.
Edsger W. Dijkstra, Structured Programming
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2015 Springer International Publishing Switzerland
About this chapter
Cite this chapter
Chivers, I., Sleightholme, J. (2015). Control Structures. In: Introduction to Programming with Fortran. Springer, Cham. https://doi.org/10.1007/978-3-319-17701-4_13
Download citation
DOI: https://doi.org/10.1007/978-3-319-17701-4_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-17700-7
Online ISBN: 978-3-319-17701-4
eBook Packages: Computer ScienceComputer Science (R0)