Very simple program with unexpected output

This is a discussion on Very simple program with unexpected output within the C++ Programming forums, part of the General Programming Boards category; Hello,
I am writing a very simple program to print out multiplication tables. (I always did stink at maths).
I ...

yes, it was what I wanted except for it ending at x11 (I wanted it to get to 12 but that was simple to fix). The point about global variables is understood. I just used one here as it is the only one in play and it didn't really matter. I use local ones when I'm doing anything else

yes, it was what I wanted except for it ending at x11 (I wanted it to get to 12 but that was simple to fix). The point about global variables is understood. I just used one here as it is the only one in play and it didn't really matter. I use local ones when I'm doing anything else