For Loop

Syntax:

 

for( Initialization ; Condition ; Increment or Decrement)

{

                      Statements;

}

 

Example:

for(i=1;i<=5;i++)

{

            printf("%d\n",i);

}

 

Output:

1
2
3
4
5

 

_____________________

BloggingSimplified.in

_____________________

 

Leave a Reply

Your email address will not be published.