Please note that it is important to place a semicolon (;) after closing the Boolean expression
in
the do-while loop construct.
This loop construct executes the statement part in the loop before the
boolExpr is evaluated.
Also note that it is because of this reason that the minimum number of
times the do-while loop is executed is one. The loop is terminated when the boolExpr yields a
false value.
Because the condition is tested after execution of the body of the loop, it is also known
as a
Do'stlaringiz bilan baham: