Concept Flow - For loop
Initialize i=0
Check: i < 5?
No→EXIT
Yes
Execute body
Update: i = i+1
↩Back to Check
The for loop starts by setting a variable, checks a condition, runs the code inside if true, then updates the variable and repeats until the condition is false.