code not returning sum

Printable View