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. Any parameter may be blank.