Concept Flow - While and Do-While loops
Initialize counter
While Condition?
No→EXIT
Yes
Execute loop body
Update counter
Back to While Condition
Initialize counter
Execute loop body
Update counter
Do-While Condition?
Yes→Back to Execute loop body
No
EXIT
↩Back to While Condition
The While loop checks the condition before running the loop body. The Do-While loop runs the body first, then checks the condition to decide if it repeats.