- While loop evaluates the conditions inside the brackets.
- If the condition returns true, the statements inside the while loop body will be executed.
- Condition inside the while loop is executed once again.
- This process goes on until the condition in the while loop becomes false.
- Once the condition is false, while loop terminates.
Syntax of While loop