This is really the only segment of code that matters
I'm trying to multiply the arrays by each other (for example if the array a is [4,6,8] and array b is [5, 7,9] then I want the product array to = [4x5, 6x7, 8x9])Code:for (i=0; i<length; i++) { for (c=0; c<length; c++) { product[i] = a[i]*a[c]; } }
But it is multiplying them some other way and when I try to do it by hand I only get the answer I think is right , not the one the computer gives. If the rest of the program would help I can post that too thanks.



1Likes
LinkBack URL
About LinkBacks



