We have already discussed iteration through various loop structures discussed in Section 1.10.3. Itera-
tion can be defined as an act of performing computation each time by the same method and the result of
computation is utilized as the source of data in the next repetition of the loop. For example the factorial
of an integer N can be computed by the following iterative loop:
fact = 1;
for (i = 1; i <= ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.