state a vector of integers named val. Then write a for loop to push the values 1 through 5 into the elements of the vector stated
The code in c++ is given below.
using namespace std;
cout<<"Displaying the content of the vecotr: ";
The screenshot of the running code and output is given below.
If the answer helped please upvote it means a lot. For any query please comment.
Get Answers For Free
Most questions answered within 1 hours.