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

while Statement

while statement has the following syntax:

while (expr)

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

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