Subtracting 1 from an entire array (every unit)

This may be a rudimentary question, but I could not find an answer for it in the forums. I have written a code where the user input at the beginning determines the size of the array.

The array called MyArray is made up of [rows][cols]

"cols" is determined by the user
"rows" is 3^(cols) <---exponent not XOR

I have generated "MyArray" however, now I want to subtract one from every single generated number in the array. For example, if the array is:

0000
0001
0002
0010
0011
....

subtract 1 to get

-1 -1 -1 -1
-1 -1 -1 0
-1 -1 -1 1
-1 -1 0 -1
-1 -1 0 0
......

I am assuming there is a really easy way to do this, but not sure.
Topic archived. No new replies allowed.