while(expr){
action();
}
executes action as long as expr holds true.
do {
action();
} while(expr);
does action once and if expr is true afterwards, does it again, and again ... until expr is false.
So
do{action()}while(expr);
is short for writing
action(); while(expr) { action(); }