Aer/tests/loop_do_while_test.aer
belliash b668d0a897
All checks were successful
The build was successful.
Test do { ... } while(); loop.
2019-04-17 11:01:34 +02:00

24 lines
284 B
Plaintext

class Program {
private int test() {
static int $x = 9;
return $x--;
}
public void main() {
int $a;
do {
$a = $this->test();
int $z = $a;
if($z == 6) {
continue;
} else if($z == 3) {
break;
}
print("$z\n");
} while($a);
print("$a\n");
}
}