Minor issue, this code:
```
while(year++) {
for(season = 0; season < 4; season++) {
if(year == 2 && season == 3)
print("Reached!");
return;
}
}
```
should probably be
```
while(year++) {
for(season = 0; season < 4; season++) {
if(year == 2 && season == 3) {
print("Reached!");
return;
}
}
}
```
The braces should probably encompass both statements so it actually
works as expected. It's still readable but it's just a minor mistake
that's bugging me.
Ah! yes.
Thanks for catching this one, I'll update the example.
On 2025-01-17 12:46, thezipcreator wrote:
> Minor issue, this code:
> ```
> while(year++) {
> for(season = 0; season < 4; season++) {
> if(year == 2 && season == 3)
> print("Reached!");
> return;
> }
> }
> ```
> should probably be
> ```
> while(year++) {
> for(season = 0; season < 4; season++) {
> if(year == 2 && season == 3) {
> print("Reached!");
> return;
> }
> }
> }
> ```
> The braces should probably encompass both statements so it actually
> works as expected. It's still readable but it's just a minor mistake
> that's bugging me.
>