how to itteration a while loop c++ code example
Example 1: While loop in c++
while (x){ ... }
Example 2: while loop c++
//Executes a statement repeatedly, until the value of condition becomes false.
//The test takes place before each iteration
while(condition) {
statement
}