Question: Help needed in C program ! Thanx 4. Write a C program that creates two arrays of 6 integers, prompts the user and reads in

Help needed in C program ! Thanx

Help needed in C program ! Thanx 4. Write a C program

4. Write a C program that creates two arrays of 6 integers, prompts the user and reads in the 6 values for the first array, prompts the user and reads in the 6 values for the second array, then prints the sum of the first element in each array, then the sum of the second element in each array, etc. Your program should be designed such that if I wanted to handle rows of 1000 integers, I could just change one line of the program and re-compile it. (To do this, Google the preprocessor directive #define.) You may paste your program into your existing document or attach a separate .c file. The output of your program should look exactly like this: Enter the first row of 6 integers: 1 2 3 4 5 6 Enter the second row of 6 integers: 1 3 5 7 9 11 Their sums are: 2 5 8 11 14 17 1 2. 3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!