No errors, but output not correct? Only one loop performed correctly! Help please :)

Printable View