Files
Aer/tests/loop_while_test.aer
T

25 lines
323 B
Plaintext

import 'console';
class Program {
private int test() {
static int $x = 9;
return $x--;
}
public void main() {
int $a;
int $c = 2;
while($a = $this->test()) {
int $b = $a;
if($b == 6) {
continue;
} else if($b == 3) {
break;
}
Console::Print("$b\n");
}
Console::Print("$c\n");
}
}