i am trying to do a program where with an array you write 20 numbers for the array and then you print all the numbers, but not the duplicated ones here's my code
float numbers[20], final[21];
int i,j;
for(i=0; i<20; i++){
cout <<"Enter a number: "<<flush;
cin >>numbers[i];}
for(j=0; j<20; j++){
if(numbers[j]=numbers[i+1]){
cout<<numbers[i];}}
what is wrong with it?