Make sure not Same input is entered and store in array? is this program ok - Beginner
===

    /* Is This Program Ok or Can it be Improve but simply??, How make sure not repeat 
              numbers*/
    int n;
    int array[9];
    
    cout<<"Enter Number Between 9-0 Only"<<endl;
    for(int i = 0; i<=10; i++){
        cout<<"Enter Number" <<(i+1)<<endl;
        cin >> n;
        if((n >= 0) && (n <=9)){
           array[i]=n;
         }
            else{
            cout<<"Numbers from 0-9 only\n"<<endl;
            
            break;
        }

    }




i Want to know if this program is ok and how to make sure no repeat numbers are enter?