The body of the code contains a series of case statements, corresponding to possible values of the numeric expression. Any case block that contains the numeric expression will execute. Loops for while do - while Loops allow the same block of code to be executed many times. 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.