while condition example for c++
Example 1: do while loop c++
do
{
statement(s);
} while(condition);
Example 2: c++ while true
while (true) { // or 1/true
//do stuff
}
do
{
statement(s);
} while(condition);
while (true) { // or 1/true
//do stuff
}