{{keywords>wiki library source code example reference}} ===== for ===== #include /* including standard library */ //#include /* uncomment this for Windows */ for ( init; condition; increment ){ statements; } ===== C Sourcecode Example ===== #include /* including standard library */ //#include /* 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