First page Back Continue Last page Overview Image
Why looping?
- The looping simplifies the complex problems into the easy ones. It enables to alter the flow of the program so that instead of writing the same code again and again, we can execute the same code for a finite number of times.
- For example, if we need to (printf) ‘UNIVERSITY OF CALCUTTA’ 10-times then, instead of using the (printf) statement 10 times, we can use (printf ) once inside a loop which runs up to 10 iteration.