Ask a New Question

Question

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
10 years ago

Answers

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
10 years ago

Related Questions

Name all the arrays you can manke with each set of tiles 8 tiles, 9 tiles, and 16 tiles Name all the arrays you can make with each set of tiles. 1. 8 tiles 2. 9 tiles 3.16 tiles i need help on arrays and an expanded algorithm please wright as asap please I need help with using arrays to multiply there are 3 arrays for 4.how many arrays can be drawn for each prime numbers what are some arrays that add up to 24 are at least 2 high but no taller than 8 high? How many different arrays can you make with a total of 6counters? How many arrays are there for modeling a rectangular quilt with 24 paper squares? How many arrays are there for modeling a rectangular quilt with 24 paper squares? please help
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use