C/C++ Program to find the sum of adjacent pairs in an array
Write a program to find the sum of adjacent pairs in an array in C/C++. Example, Input 1 2 2 3 4 5 Output 3 4 5 7 9 The program is very simple. We traverse each element of the array (except for the first element) and print the sum of the current element and …
C/C++ Program to find the sum of adjacent pairs in an array Read More »