Hi,I am in the process of void function that uses for loops to bring up values from array and compare them.
I recognize that it will be possible to simplify my void function using for loop. Please help
here is my void function.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
void difference(double original [10][10],double comparison [3][3],double score[3])
{
int p,q, x,y;
double score_0,score_1,score_2, differen, sum1=0;
score[0]=0;
score[1]=0;
score[2]=0;
for (p=0;p<7;p++)
{for(q=0;q<7;q++)
________I want to simplify the part below.
differen = original[p][q] - comparison[0][0];
score[0] = score[0] + differen;
score[1] = score[1] + fabs(differen);
score[2] = score[2] + (differen*differen);