Abstract
The aims of this chapter are to introduce:
-
selection between various courses of action as part of the problem solution
-
the concepts and statements in Fortran needed to support the above. In particular
-
logical expressions
-
logical operators
-
a block of statements
-
several 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
-
Summarising: 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
Preview
Unable to display preview. Download preview PDF.
Bibliography
Dahl O. J., Dijkstra E. W., Hoare C. A. R., Structured Programming, Academic Press, 1972.
Knuth D. E., Structured Programming with GOTO Statements, in Current Trends in Programming Methodology, Volume 1, Prentice Hall.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 1995 Springer-Verlag London Limited
About this chapter
Cite this chapter
Chivers, I.D., Sleightholme, J. (1995). Control Structures. In: Introducing Fortran 90. Springer, London. https://doi.org/10.1007/978-1-4471-3031-4_15
Download citation
DOI: https://doi.org/10.1007/978-1-4471-3031-4_15
Publisher Name: Springer, London
Print ISBN: 978-3-540-19940-3
Online ISBN: 978-1-4471-3031-4
eBook Packages: Springer Book Archive