Either my loop is bad or my function is messed up

Printable View