SunFounder GalaxyRVR Kit for Arduino, Release 1.0
• Initialization: This step is executed first and only once when we enter the loop for the first time.
It allows us to declare and initialize any loop control variables.
• Condition: This is the next step after initialization. If it’s true, the body of the loop is executed.
If it’s false, the body of the loop does not execute and the flow of control goes outside of the for
loop.
• Increment or Decrement: After executing the Initialization and Condition steps and the loop
body code, the Increment or Decrement step is executed. This statement allows us to update any
loop control variables.
The flowchart for the for loop is shown below:
44 Chapter 3. Course Mode