LTE
courses.kpu.ca
Marked out of 10.00
Flag question
Write a value-returned function that receives two integer arrays array1 and array2 of length size. This function should return the product of all components of array2 for which the corresponding components of array1 are negative. (10%)
For example, if size is 6 and array1 has values -5 -3 3 4 16 -7, and array2 has values 234 567, the value returned by this function should be 23 * 7 which is 42.
B
Av