Question: 2. Using vector; a. declare an integer vector b. ask user how many elements he/she wants to enter and populate the vector for that amount

2. Using vector; a. declare an integer vector b. ask user how many elements he/she wants to enter and populate the vector for that amount of values. c. ask user to enter another integer variable. d. search the vector using foreach loop and inform the user if the entered value is in the vector or not
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
