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