for

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
    for ( init; condition; increment ){
    statements;    
    } 

C Sourcecode Example

#include <stdio.h> /* including standard library */
//#include <windows.h> /* uncomment this for Windows */
 
int main( void )
{
  int i;
  for (i=0;i<=42;i++){
 
        printf("i is : %i\n",i);
}
 
return 0;
}
  output of for loop
  i is : 0
  i is : 1
  i is : 2
  i is : 3
  and so on