Wednesday, October 26, 2011

Loops

The versatility of the computer lies in its ability to perform a set of instructions repeatedly. This involves repeating some portion of the program either a specified number of times or until a particular condition is being Satisfied This respective operation is fone through a loop controal instraction

There are three methods by way of which we can repeat a part of a program Thay are;
(a) Using a for statement 
(b) Using a while statement 
(c) Using a do-while statement
Each of these methods is discussed in the following pages

No comments:

Post a Comment