Hello! How do I make a program in C++,in a one-dimensional array consisting of n integer elements, calculate:
-number of paired elements standing in even places in the array,
-the sum of the elements of the array, located after the first maximum element in the array.
-Compress the array, removing from it all the elements whose value coincides with n (the number of elements in the array). Fill in the blanks at the end of the array with zeros.
I would start with defining the array and inputting some numbers into the array.
Work in small steps. Compile often and test what you have done.
Then post what you have.
If all you are going to ask is "How do I make a program in C++" be prepared for answers that are likely beyond what you know because you have not mentioned what you know or what you have learned.