Inverse? Would that make something like
1 2 3
4 5 6
7 8 9
into
9 8 7
6 5 4
3 2 1
?
If so, I could do it, but there's probably an easier way...
Code:
for (x=0; x<10; x++) //x is row, y is column
{
for (y=0; y<10; y++)
{
iMatrix1[x][y] = x*y;
}
}
for (x=9,a=0; x>=0; x--,a++) //a is row, b is column
{
for (y=9,b=0; y>=0; y--,b++) //this loop is first loop flipped diagonally
{
iMatrix2[a][b] = x*y;
}
}
The first loop makes a matrix containing the multiplication table up to 9x9, the second reverses it like I mentioned before. You'd just have to change the x*y part