Chapter 4 - Loops and FORMAT

Chapter 4 - Loops and FORMAT

The most used control construct for repeating a section of code is the DO loop. This is covered in detail, and is presented along with several complete programs. The newer DO WHILE is also described.

In the program so far only the READ * and PRINT * statements have been used to do input and output. To allow a program to have essentially complete control over the details of this input or output the FORMAT statement is described. This powerful, but compact, statement allows many variations in the form of the data processed. Both horizontal and vertical spacing of displayed output is covered.

Use of the many built-in - intrinsic - functions is described.

Have a look at the sample programs for this chapter

Come back to the main page