#include <iostream>
#include <vector>
using namespace std;
int main()
{
vector<int> numbers(10);
int entry;
cout << "Enter 10 integers: ";
for (int i = 0; i < 10; i++)
{
cin >> entry;
numbers[i]++;
}
cout << "Forward: ";
for (int i = 0; i < 10; i++)
{
if (numbers[i] = entry)
cout << numbers[i] << " ";
}
return 0;
}
|