for(starting assignment; condition; incrementation) { // code block }
starting assignment: This first part is usually used to assign a counting variable to zero at the beginning of the loop. JK performs this assignment before testing the condition, and does not run it again afterwards.
condition: Before JK runs the code, it checks this condition. If the condition is true, JK goes on to run the code; if false, JK ends the loop.
incrementation: After the block of code is run, JK performs another variable assignment. This is usually the incrementation of the counting variable.
for(i=0; i < 5; i=i+1) PrintInt(i);