do…while repetition
上一节
下一节
do…while Repetition Statement
}The do…while repetition statementis similar to the whilestatement.
}In the while, the program tests the loop-continuation condition at the beginning of the loop, before executing the loop’s body; if the condition is false, the body never executes.
}The do…while statement tests the loop-continuation condition after executing the loop’s body; therefore, the body always executes atleast once.
}When a do…while statement terminates, execution continues with the next statement in sequence.


