in reply to Weird Warning

Since you get zeros instead of blanks, you don't have uninitialized values in the print. I suspect a typo in the if statement.

mannequin approach: Call someone over to look at the problem, but just as they get there look at the code again. You'll probably spot the error.