while loop in C+= code example
Example 1: do while loop c++
do
{
statement(s);
} while(condition);
Example 2: c++ while true loop
while (true) { // you can also put 1 or true: while (1)
//do stuff
}
do
{
statement(s);
} while(condition);
while (true) { // you can also put 1 or true: while (1)
//do stuff
}