You need a two dimensional array:
int *multiplicationTable = new int[10][10];
Then you could populate it like this:
for (int i = 0; i %26lt; 10; i++)
for(int j = 0; j %26lt; 10; j++)
multiplicationTable[i][j] = i * j;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment