Need some help debugging: Keeps return 0 as a value!

Printable View