The while loop is used to run the block of statement again and again until condition is TRUE. if condition false program terminate the loop and execute the next of while statement.
syntax:
initialize;
while(condition)
{
statement;
increment/decrement;
)
when condition is TRUE, the block of statement execute again and again.