I've created a program that displays multiplication table:
for (int a=1; a<=10; a++)
{
cout << endl;
for (int b=1; b<=10; b++)
{
cout << " [" << a*b <<"] ";
}
}
The problem is it displays it like this:
I've tried to use setw() but it doesn't work since it sets it to all the numbers so it just makes the result spaced out a little bit more. Anything else i can try?