My 2 Cents How To Use While Loop In C++

Swati Mishra

Yellow Belt
While loop continues in the program until the condition becomes false. The evaluating condition has to be a logical expression and it is necessary to return True or False value.

Syntax

While (expression)
{
Statements
}
 

Manish Mishra

Yellow Belt
The while loop or While-Do loop is just the reverse of the Do-while loop.
Where you are aware with the condition but not aware what to do. You will put the condition and user or later in programme you will known of task.
 
Top