Question: I need help writing a very short C program that can achieve the question above. I have put a lot of thought into it but


I need help writing a very short C program that can achieve the question above. I have put a lot of thought into it but I really struggle with simple algorithms at times.
Thank you!
Assume you have the following two arrays (listl and list2) and want to find the average of each pair of elements and save them in a third array (Avg). List1 + List2 Avg 2 Use the following values in listi and list2: List1 = {-13, 15, -17, 23, 27} o List2 = {11, 10, 13, 21, 52} List1[1]+List2[1] -13+11 Example: Avg[1] . = 2 2 Write a short C-language code to show how this can be implemented. Assume all your arrays are of type "signed int". Don't write a full program, just declaring and initializing the three arrays then a loop that will calculate the average of each pair from the first two arrays and save it to a third
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
