(Solved): please C++
Integer vecVals is read from input. Given the integer vector year ...
please C++
???????
Integer vecVals is read from input. Given the integer vector yearlySalary with the size of vecVals, write a for loop to output the integers in the first half of yearlySalary in reverse order. Separate the integers with a dash surrounded by spaces (" - "). Ex: If the input is 4 74767896 then the output is: 76?74 Note: The vector size is always even.