You define the TWO 2D arrays, but then you handle them like 1D vectors. Is that what you want to do?
double number[10][10];
. . .
number[0]=num;
. . .
If you want to assign num to array element (0,0), you should state it like this:
number[0][0]=num;