// Single-expression body.
//
// out: 1
// out: 2
// out: 3
//
var c = 0;
while (c < 3) print c = c + 1;
// Block body.
//
// out: 0
// out: 1
// out: 2
//
var a = 0;
while (a < 3) {
print a;
a = a + 1;
}
// Statement bodies.
while (false) if (true) 1; else 2;
while (false) while (true) 1;
while (false) for (;;) 1;