Code is not giving the desired output

Printable View