Question: 3. Write a C program that declares and initializes two integer arrays x and y. They should have at least 5 elements. You are required

 3. Write a C program that declares and initializes two integer

3. Write a C program that declares and initializes two integer arrays x and y. They should have at least 5 elements. You are required to compute float array z such that each element of z is the average of the corresponding elements in x and y. Your output should look something like following: Input Array x: [-1 2 5 3 -5 6] Input Array y: [-7 8 23 13 23 28] Output Array 2: [-2.00 5.00 14.00 8.00 9.00 17.00)

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!