Files
Aer/tests/loop_do_while_test.aer
T

25 lines
320 B
Plaintext

import 'console';
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;
}
Console::Print("$z\n");
} while($a);
Console::Print("$a\n");
}
}