running while loop in c++ code example Example: how to define a while statement in c++ while(condition) { statement(s); }