While loop
Syntax:
while(condition)
{
statements;
statements;
statements;
}
* While loop is an entry control loop.
* In while loop the condition is checked first and then the statements of the loop are executed.
* In while loop if the specified condition is true then only the control enters the loop otherwise not.