Discussion in 'C' started by techinspiration, Apr 26, 2010.
i am a student and i have a question that what is loop.
A loop is used to repeat a piece of code until some condition is met.
Sometimes you need to do a series of actions for a number of times, or until some condition is met. The code written for that purpose is called a loop.
In looping, a sequence of statements are executed until some conditions for the termination of the loop are satisfied.
loop contains two parts
1. Body of the Loop
2. Control statement
in C-language there are three constructs for Loops
1.The While loop
2. The Do ..While loop
3. The For Loop
1.While ( Condition)
3.for ( i=1;i<=100;i++)
try some online tests at wiziq dot com that will help to build your knowledge.
Kolla Sanjeeva Rao
Separate names with a comma.