Exercise problem, how was this output achieved?

Printable View