Saturday, May 23, 2009

Loops

Loops are used to repeat set of statemensta again and again. In C/C++ we have three type of loops.
For
While
Do....while
for loop : we use for loop when we know in advance for how many number set of statements will repeat.