while loop in cpp syntax code example Example: do while loop c++ do { statement(s); } while(condition);