do while with a function c++ code example Example: c++ do while loop do { // codes; } while (testExpression);