Question: C + + pls; Given an int vector numbers that has already been declared. Write a code snippet that continuously asks the user for integer

C++ pls;
Given an int vector numbers that has already been declared. Write a code snippet that continuously asks the user for integer inputs. These integers will be appended to the numbers, until the user inputs -1. At this point, your code will print out the size of the vector. No input validation is needed in this assignment.

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 Programming Questions!