This is what I have. It displays the 100, which is what 10 times 10 would be, but I want it to show a multiplication table. My Nest For Loop works fine doing the same thing but I can't get this to work properly. Can anyone help?

{
int row=0;
while (row < 10)
row ++;
int column = 0;
while (column < 10)
column ++;
{
cout << row * column << "\t";
}

cout << "\n";
return 0;
}
while (column < 10)
column ++;
{
cout << row * column << "\t";
}

should be

while (column < 10)
{
column ++;
cout << row * column << "\t";
}

@lerner
It's still not working at all, im getting values of 10's across the top. :(

{
int row=0;

while (row < 10)
{
   row++;
   int column = 0;
   while (column < 10)
   {
     column++;
     cout << row * column << "\t";
   }
   cout << "\n";
}
return 0;

}

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.