[solved]-Given Array Please Computing Product Sum Elements Array Print Results Example Array List 3 Q39018830
For a given array, please computing the product and sum of allthe elements in the array and print the results. For example, forthe array list[34]={1,2,3,4}, the product=1*2*3*4=24 andsum=1+2+3+4=10.
#include
#include
using namespace std;
const int ARRAY_SIZE=4;
void product_sum(int myList[], int arraySize, int&myProduct, int& mySum);
int main(){
intlist[ARRAY_SIZE]={1,2,3,4};
//your code here
cin.get();
}
void product_sum(int myList[], int arraySize, int&myProduct, int& mySum){
// you code goes here
}
Expert Answer
Answer to For a given array, please computing the product and sum of all the elements in the array and print the results. For exam… . . .
OR

