Question: C++ ONLY Write a C++ program that returns the elements in a vector that are even numbered. 1)Take 5 elements into a vector. 2)Define a

C++ ONLY

Write a C++ program that returns the elements in a vector that

are even numbered.

1)Take 5 elements into a vector.

2)Define a function named even_generator(), which receives a vector

and returns a vector that only contains even numbers.

Note: You don't need to take input from the user.

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!