It will only print out things if x equals zero (first row). Incidentally, I think you meant to do this:


for (int row = 0; row <= 8; row++)
{
for(int col = 0; col <= 8; col++)
{
...