How can i Improve this program C++
===

    
    int n;
    int *array[9];
    bool isUsed[10] = {0};
    
    for(int i = 0; i < 9; i++) 
    {
        cout << "Enter Number " << (i + 1) << endl;
        cin >> n;
        if((n >= 0) && (n <= 9))
        {
            if (isUsed[n] == false)
            {
                array[i] = new int;
                *array[i] = n;
                isUsed[n] = true;
            }
            
            else
            {
                cout << "Number has already been used." << endl;
                i--;
            }
        }
        
        else 
        {
            cout << "Numbers from 0-9 only." << endl;
            i--;
        }

    }
    
        cout << *array[2]<<endl;

is there any way i can improve this program making simple but at the same time more efficient i mean what i did was prompt the user for 9 numbers store those numbers in 9 pointers and display the element 2.. and it seem to work just fine but i my forgetting something?? or can i improve it but keep it simply.. i'm just a beginner testing what i have learn so far...
