Quote Originally Posted by ashley19 View Post
How can I make it continually loop? It only asks for it one time? Is it possible to stop it after 5 times? Do I need a control condition/while loop?
or
is it possible to have the user input 5 integers in the beginning and have the output show at the end?


Code:
#include <iostream>
#include <vector>
using namespace std;

int main()
{
    std::vector<int> inputs;

    for(int i = 0; i < 5; ++i)
   {
        cout << "Enter an integer: ";
        cin >> inputs[i];
   }
        
    for(int i = 0; i < 5; ++i)
    {
          cout<< inputs[i];
    }
	   
}
Like that?