Jerome
07-27-2003, 12:15 PM
Hi,
Given:
I have 2 array's filled with numbers. These arrays can be different in length each time, but compared to each-other they have an equal length!
Example:
A1=new Array(14,35,27,87);
A2=new Array(13,42,34,79);
Questions:
I like to have a new array with the highest number on each place, the results should look like:
A3=new Array(14,42,34,87);
After that I like to have the sum of the values from that array, in other words:
177
Thanks for Your effort and free time!
Jerome
Given:
I have 2 array's filled with numbers. These arrays can be different in length each time, but compared to each-other they have an equal length!
Example:
A1=new Array(14,35,27,87);
A2=new Array(13,42,34,79);
Questions:
I like to have a new array with the highest number on each place, the results should look like:
A3=new Array(14,42,34,87);
After that I like to have the sum of the values from that array, in other words:
177
Thanks for Your effort and free time!
Jerome