Full width home advertisement

Travel the world

Climb the mountains

Post Page Advertisement [Top]

Loop Components

 loop has four components, such as:
i. loop initialisation.  It is the preparation required before entering a loop: setting accumulators and counters.
ii. loop body. This represents the main process of the loop. This is the code within the braces
iii. loop modification. Values calculated in the loop body are rolled in to accumulators.
iv. loop exit. A condition to check for exiting the loop.

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib