Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
513 B

class Program {
public void main() {
int[] $numbers = {'five' => 5, 'six' => 6, 'seven' => 7, 'eight' => 8, 'nine' => 9, 'zero' => 0};
string[] $days = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
foreach(string $key => int $numeric in $numbers) {
if($numeric == 6) {
continue;
}
print("$key is $numeric\n");
if($numeric == 8) {
break;
}
}
print("\nA week has seven days:\n");
foreach(string $day in $days) {
print("$day\n");
}
}
}