why am i not getting correct output

Printable View