Through loop, a statement or a block of statements can be executed several times. In a loop we can define the initial value from which the loop should start, the value till we want the loop to run and the increment or decrement counter. The process of the execution of the loop starts with the checking of the value that is going to be its key, we check if it is following the condition that we declared in the statement when we started it. Then the statement inside the loop is executed, the value is incremented or decremented accordingly. And then that value is checked again and the loop ends after the value falls out of the condition of the loop.

Suggest An Answer

No suggestions Available!