What's the logic behind this code?

Printable View