The code following each loop construct is equivalent each block prints the numbers from 1 to 10 on a separate line. The for statement executes a block of code repeatedly. Initialization is performed only once, when the loop starts. Condition is evaluated each time the loop returns to the top. If the condition is true, the loop continues to function, and if not, the loop is exited.
Expression is evaluated each time the loop returns to the top.
It is normally an incrementation statement. The parameters are delimited by semi-colons. Any parameter may be blank. The loop does not execute if the condition is not met when the loop starts. The while loop executes as long as condition evaluates to true.