I made a program that reads in20 numbers, each between 10 to 100 and if a user inputs a number not in that range they are asked to re-input. After reading in all the values, I need to display all the unique vclues.
Thanks!

Code:
#include <iostream>
using namespace std;

int counter = 0;
int num = 0;

int main ()
{

int array = new array [20];

while(counter <= 20){
cin << num;

 if(num>=10 && num<=100){
 array[counter] = num;
 counter++;
 }


 else {
 cout << "Enter a number between 1 and 10";
}


}

for(int x=0; x<=20; x++)
{
cout << array[x];
}
return 0;
}