for-loop part 5

You can nest several for loops in one another.

In the example on the left, two for loops have been nested to program a chaser light.

If your source code contains errors and you compile then the computer highlights the lines where the compiler thinks there is an error.

In this example there are four errors!

Can you finde them all?

After compiling you can get more information about the errors by clicking on !

Transfer the corrected programme onto your BOB3.

1: What does the program do?
2: When programming you have to pay attention to the capitalisation of letters.
 You haven’t completed anything yet!
 Super, so far so good…
 Super, you got it all right!
 Sadly not correct…
 One answer is correct
 A couple are correct…