Complete the program to output the sum of the:
So if the array is: 9 8 4 5 6 2 your program should output:
11 14 9
You may assume the size of the array is even.
using namespace std;
int main()
{
int n;
// biggest possible
int arr[20];
cin >> n;
for(int i=0; i < n; i++){
cin >> arr[i];
}
return 0;
}