I am using a for loop to count down from 10 to 0 it's working to count down from 10 to 1 but when the program cames to the 0 then the program freezes by any reason can anyone help me find out what's wrong.

Code:
#include <iostream>
using namespace std;
int main()
{
    int number[2];
    cout << "Enter number: ";
    cin >> number[0];
if (number[0] == 1)
{
    for (int i = 10; i < 20; i--) //Print the numbers from 10 down to zero
    {
        if (i > 0) //If i greater than zero then print this
        {
            cout << "This is your " << i <<  " try! " << endl;
            cin >> number[1];
            if (i == 0) //If i is equal to zero then exit
            {
                cout << "You exited!" << endl;
            }
            if (number[1] == 2)
            {
                cout << "You Won!" << endl;
            }
        }
    }
}
    return 0;
}