Initial
The while loop checks the condition first.
It executes while the condition is true.
Depth
If the condition is false initially, it does not run.
It is called an entry-controlled loop.
More Depth
Used when the number of iterations is unknown.
Final
The while loop repeats execution based on a condition.
Top comments (0)