I cannot get the right output in the right place. Where is my problem?

Printable View