While Loops in C and C++

while(conditional)
{
  //code
}
Braces are only needed for multiline blocks of code. The code inside the loop is executed while the conditional is true.

Related

Looping tutorial

Learn about do-while loops

Learn about for loops