Answer:
#include <stdio.h>
int main() {
const int NUM_VALS = 4;
int origList[NUM_VALS];
int offsetAmount[NUM_VALS];
int i;
origList[0] = 40;
origList[1] = 50;
origList[2] = 60;
origList[3] = 70;
offsetAmount[0] = 4;
offsetAmount[1] = 6;
offsetAmount[2] = 2;
offsetAmount[3] = 8;
for (i = 0; i < NUM_VALS; ++i) {
printf("%d ", origList[i] - offsetAmount[i]);
}
printf("\n");
return 0;
}
Explanation: