do while loop คำสั่งวนลูป do while ทำอย่างน้อย1ครั้ง
4/2/2561SONGCHAI
PRAPATRUNGSEE
do while loop คำสั่งวนลูป do while ทำอย่างน้อย1ครั้ง
do...While
[Control Structure]
Description
The do…while loop works in the
same manner as the while loop, with the exception that the condition is tested
at the end of the loop, so the do loop will always run at least once.
Syntax
do
{
// statement(s)
} while (condition);
The condition is a boolean
expression that evaluates to true or false.