IDNLearn.com: Where your questions are met with thoughtful and precise answers. Our platform is designed to provide reliable and thorough answers to all your questions, no matter the topic.
Answer:
here you go, if it helps ,do consider giving brainliest
Explanation:
#include<stdio.h>
int main(void)
{
const int NUM_VALS = 4;
int origList[4];
int offsetAmount[4];
int i = 0;
origList[0] = 40;
origList[1] = 50;
origList[2] = 60;
origList[3] = 70;
offsetAmount[0] = 5;
offsetAmount[1] = 7;
offsetAmount[2] = 3;
offsetAmount[3] = 0;
// Prints the Sum of each element in the origList
// with the corresponding value in the
// offsetAmount.
for (i = 0;i<NUM_VALS;i++)
{
origList[i] += offsetAmount[i];
printf("%d ", origList[i]);
}
printf("\n");
return 0;
}