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