hi,
in this case it isn't really necessary to create a dynamic array, you should replace
int array = new array[20]
with
int array[20]
.
If you still want to use dynamic arrays i sugesst to read the following tutorial:
http://www.cplusplus.com/doc/tutorial/dynamic/
there is also a small mistake in the text in line 22, which should be
cout << "Enter a number between 10 and 100"
but this is not the reason why your program does not work of course.
In addition the condition of the for-loop is wrong, because this way it would run through 21 times instead of 20 times, so you should change it to
for(x=0;x<20;x++)
Notice that i did remove the 'int' too, because you should not create new varibles in the middle of a function. You should rather declare this variable at the beginning of the function, together with all other variables.
Same with the while-loop, change the condition to
counter<20
to avoid errors.