Question: Write a C++ program that takes n integers from the users. Then store each of them in a vector. After the user has inputted all
Write a C++ program that takes n integers from the users. Then store each of them in a vector. After the user has inputted all the integers required, the program shall display all the integers in the vector. You need to fulfill the following tasks: 1./ First prompt the user for the number of integers that they would like to enter. 2. Then, prompt the user to enter the integers one by one. 3. Display the integers in the vector The expected output in the console should be exactly as shown below ple output when a Welcome!! Please enter how many integers you would like to input: 5 Please input integer 1 100 Please input integer 2 :200 Please input integer 3 300 Please input integer 4: 400 Please input integer 5 : 500 You have entered: 100 200 300 400 500 This is an example output when a user enters 3 integers. Welcome!!! Please enter how many integers you would like to input: 3 Please input integer 1:3 Please input integer 2: 4 Please input integer 3 :5 You have entered: 3 4 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
