error when testing program (for loop with nested if statement))

Printable View