#include
using namespace std;
int m(int &arrsum , int &arrpro)
{
int i;
int j;
int arr[10];
int arr2[10];
cout << "Enter the element to sum : " << endl;
arrsum = 0;
for (i = 0; i < 10; i++)
cin >> arr[i];
arrsum += arr[i];
cout << "Enter the element to product : " << endl;
arrpro = 1;
for (j = 0; j < 10; j++)
cin >> arr2[j];
arrpro *= arr2[j];
return i;
}
int main()
{
int sum, pro;
cout << "The Sum and the product of the array elements : "<< m(sum, pro);
return 0;
}