Skip to main content

Control Structures

  • Chapter
Introducing Fortran 90

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Bibliography

  • Dahl O. J., Dijkstra E. W., Hoare C. A. R., Structured Programming, Academic Press, 1972.

    Google Scholar 

  • Knuth D. E., Structured Programming with GOTO Statements, in Current Trends in Programming Methodology, Volume 1, Prentice Hall.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics