Given that the textbook is yet to be published, I took the opportunity of this week to lay some ground in "algorithmic thinking". The students looked at a few algorithms today and decided what each of them accomplished. Here is one. Do you know what it does?
If you want to work it out for yourself, stop reading!