Sets up two index variables I and j the former initialized to zero and the latter to 100 before the loop begins. Each time after the body of the loop is executed, the value of I will be incremented by 1 while the value of j is decremented by 10.For( I = 0; j = 0; I < 10, j=j-10)
The above statement might be used if j were already set to some initial value before the loop was entered. A for loop that has its looping condition field omitted effectively sets up an infinite loop, that is a loop that theoretically will be executed for ever.For(j=0;j!=100;++j)
#include < stdio.h > //Include stdio.h file void main() //start main program { int I; //declare variable i=0; //initialize variable. for(I=0;I < 5; I++) //for loop { printf(“I%d”,i); } //end of for loop }