CHAPTER 4
Looping Techniques
Various computer applications need ‘repeated’ execution of some set of ‘computational statements’ again and again. For example, different terms of the Fibonacci series are computed by repeatedly adding the values of two immediate preceding terms. The sum of a series expansion involves the repeated generation of next terms and adding it to the previous sum, the salary of all the employees of an organization is computed using the same set of rules again and again. At an university level examination students results are computed using the same set of rules again and again, and so on. There are such innumerable number of applications where one will be repeatedly or iteratively executing a certain set of statements again ...
Get Programming Techniques Through C: A Beginner's Companion now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.