1. The while is an entry-controlled loop statement. The test condition is evaluated and if the condition is true, then the body of the loop is executed.
2. The execution process is repeated until the test condition becomes false and the control is transferred out of the loop.
3. On exit, the program continues with the statement immediately after the body of the loop.
4.The body of the loop may have one or more statements.
5. The braces are needed only if the body contains two or more statements. It's a good practice to use braces even if the body has only one statement
Syntax:
Initialization Expression;
while ( Test Condition)
{
Body of the loop
Updation Expression
}