This commit is contained in:
20
tests/loop_for_test.aer
Normal file
20
tests/loop_for_test.aer
Normal file
@@ -0,0 +1,20 @@
|
||||
class Program {
|
||||
|
||||
public void main() {
|
||||
int $c = 4;
|
||||
for(int $a = 0; $a < 10; $a++) {
|
||||
for(int $b = 0; $b < 10; $b++) {
|
||||
int $c = 2;
|
||||
if($b == 2) {
|
||||
continue;
|
||||
}
|
||||
if($b == 6) {
|
||||
break;
|
||||
}
|
||||
print("Hello variables: $a $b $c\n");
|
||||
}
|
||||
}
|
||||
print("Variable \$c: $c\n");
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user