This is my multiplication table program;

#include <iostream.h>
int main()
{
for (int x = 0; x < 10; x++) {
for (int y = 0; y < 10; y++) {
cout << x*y << " ";
}
cout << endl;}
return 0;
}

my output is:

0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54 etc.......

Just want to now wat I have to do so that my table is spaced out evenly like this:


0 0 0 0 0 0 0 0 0 0
0 1 2 3 4 5 6 7 8 9
0 2 4 6 8 10 12 14 16 18
0 3 6 9 12 15 18 21 24 27
0 4 8 12 16 20 24 28 32 36
0 5 10 15 20 25 30 35 40 45
0 6 12 18 24 30 36 42 48 54

Any help would be greatly appreciated. THX