LOOPS IN C


Loops in C language

For Loop -Most Useful Loops
for ( variable initialization; condition; variable inc/dec )
{
  Code to execute while the condition is true
}
While Loop - Simple Loops

while ( condition )
{
Code to be executed if the condition is true
}
Do While Loops - It is useful when we want to loop at least once
do
{
}

while ( condition );

Comments

Popular posts from this blog