Hello, I am to write a program that will send three one dimensional arrays to a function. Two of the arrays have 10 values and one has room set aside for 10 values to be placed into it. The function will take the corresponding elements from each array,multiply them together and put the result into the array with space for 10 values. I am having a hard time figuring out how I can get them to multiply each element and then place them into the array. My guess would be a for loop, or maybe a couple of for loops. Any help appreciated.

Code:
```#include<iostream>
using namespace std;
double calc_volts();

int main()
{
double volts[10];
double current[10] = {10.62 ,14.89, 13.21, 16.55, 18.62, 9.47, 6.58, 18.32, 12.15, 3.8};
double resistance[10] = {4.0, 8.5, 6.0, 7.35, 9.0, 15.3, 3.0, 5.4, 2.9, 4.8};

calc_volts(volts);
calc_volts(current);
calc_volts(resistance);

system("pause");
return 0;
}
double calc_volts()

int i;

for (i=0;i<????;i++)
{
volts[i] = current[i] * resistance[i];
}

return volts[i];```