How would I find the product of a row of 2D array?
Example:
COLS = 2; ROWS = 3;
int product;
ex: Array[ROWS][COLS];
I want to find the product of the ROW times the COL but cant seem to figure out the code.
1 2 3 4 5 6 7 8 9
double Data_Array[Num_Data][2]; // For Instance Num_Data is 6;
for(int x = 0; x < Num_Data; x++)
for(int y = 0; y < 2; y++)
{
xSq = Data_Array[x][x] * Data_Array[x][x]; // Find square of x(rows)
ySq = Data_Array[x][y] * Data_Array[x][y]; // Find square of y(columns)
XY = // how do I find the x times the y?
}