Asked by rebecca

so i have two arrays . I need to figure outh how to multiply each value of the first array by each value in the second array. how doy ou do thtisT? thanks

Answers

Answered by Steve
just loop on the indexes. If the arrays x and y have m rows and n columns, then

for (i=1..m)
for(j=1..n)
z(i,j) = x(i,j)*y(i,j)
next j
next i
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions