Please let me know if you need more time. Fortran 95 contains a new statement th
ID: 655279 • Letter: P
Question
Please let me know if you need more time.
Fortran 95 contains a new statement that ?s intended as an alternative to the Do statement. The distinguishing feature of the new statement is that the iterations of the loop may be performed in any order. (In other words, if the values of the control variable are in the range 1 to 10, the loop might be executed in the order 3, 1, 5, 4, 7, 8, 9, 2, 10, 6 or in some other order.) (a) Describe the general syntax of this loop. (b) Give an example of this loop. (c) Describe the advantage of using this kind of loop.Explanation / Answer
The CYCLE and EXIT statements specify that the remaining statements in the current iteration of a particular active (enclosing) DO loop are to be skipped.
CYCLE specifies that these statements are skipped, but the END DO statement that marks the end of the DO loop be executed