What am I missing out in this simple program?

Printable View