How do you Make A Repeat-Until Loop in C++?

 picture · Jul 3, 2009 · Viewed 152.6k times · Source

How do you Make A Repeat-Until Loop in C++? As opposed to a standard While or For loop. I need to check the condition at the end of each iteration, rather than at the beginning.

Answer

Adrien picture Adrien · Jul 3, 2009
do
{
  //  whatever
} while ( !condition );