Answer:
Replace /* Your code goes here */ with
for(i =0; i<NUM_VALS; i++) {
printf("%d", origList[i]*offsetAmount[i]);
printf(";");
}
Step-by-step explanation:
The first line is an iteration statement iterates from 0 till the last element in origList and offsetAmount
for(i =0; i<NUM_VALS; i++) {
This line calculates and print the product of element in origList and its corresponding element in offsetAmount
printf("%d", origList[i]*offsetAmount[i]);
This line prints a semicolon after the product has been calculated and printed
printf(";");
Iteration ends here
}