Why this program doesnt work properly

Printable View