Answer:
The program in C++ is as follows:
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
vector <int> inTs;
int num;
int count = 0;
int temp; int chk = 0;
while(count < 20){
temp = count;
cout<<"Enter an integer: ";
cin>>num;
if(num>=10 && num<=200){
for(int i = 0; i<count;i++){
if(num == inTs.at(i)){ chk = 1; break;}
}
if(chk == 0){ inTs.push_back(num); count++; }
else{ count = temp; }
chk = 0;
}
}
for(int i=0; i < 20; i++){ cout << inTs.at(i) << ' '; }
return 0;
}
Explanation:
See attachment for complete code where comments are used as explanation