Perry Smith
Java Questions & Answers
Home /
Java Q & A Archive Page 3 /
Java Q & A Archive
Multiply arrays
Sunday, 17-Jan-99 15:56:44
207.179.135.63 writes:
Hie there..could anywone help me ? I have been basically stuck with thie problem for
some time. - I have two arrays, x and y. I'm suppose to store the product of
corresponding elements of x and y in a 3rd array,z. Then, i have to display a table
for x,y and z.
I'm stuck with the 1st part. If anyone knows the solution, please email me or post
the solution up. Thanks!
AG
Response
Re: Multiply arrays
Saturday, 23-Jan-99 14:13:40
194.158.187.242 writes:
Write a for loop, and use the index for three purposes:
1. address elements of array x
2. address elements of array y
3. store the result of the multiplication in z
That's all.
Henk Jan
Home /
Java Q & A Archive Page 3 /
Java Q & A Archive