Concept Flow - For loop as while
Initialize variable
Check condition
Yes
Execute loop body
Update variable
Back to Check
Exit loop
↩Back to Check
This flow shows how a for loop in Go can act like a while loop by initializing a variable, checking a condition before each iteration, running the loop body, updating the variable, and repeating until the condition is false.