while loop c++
//Executes a statement repeatedly, until the value of condition becomes false. //The test takes place before each iteration while(condition) { statement }
Source: en.cppreference.com
C++ do...while Loop
do { // body of loop; } while (condition);