Question: In c + + please. numPeople is read from input as the number of input values in the vector that follow. Use two for loops

In c++ please. numPeople is read from input as the number of input values in the vector that follow. Use two for loops to output all numPeople elements of vector walkingRoster that are:
even integers
odd integers
For both loops, follow each element with a ",", including the last element, and end with a newline.
Ex: If the input is 7198871768618186124, then the output is:
198,176,86,18,186,124,
87,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!