while statement has the following syntax:
statement-while:
while (expr)
statement-block
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;
}