Device Monitoring Studio - Monitor, log and analyze data coming through PC ports and connections
Download Device Monitoring Studio Hide this button

do…while Statement

do…while statement has the following syntax:

statement-dowhile:
do
    statement-block
while (expr);

Evaluates statements and declarations in statement-block until expr becomes false. If expression is false at the first iteration, statements in statement block are evaluated exactly one time.

var i=10;
do
{
    int a;
    i = i - 1;
} while (i);