I am trying to write code to display an `int` which should be between 5 and 15. I have written the code below:

```
int main()
{
    int num;

    cout << "Enter a number ";
    cin >> num;

    if (num < 100)
        cout << "Please enter a number 5 or higher" << endl;
    if ((num > 5) && (num <= 15))
        cout << "you number is" << number << endl;
    if (num > 15)
        cout << "Please enter a number 15 or lower" << endl;
    {
    while (num < 5);
    cout << "Enter a number ";

    return 0;

}

```

I am having trouble with the `while` statement.

If I enter in 5, I need to say `you need to enter a valid number`, but the `while` loop is not looping back to the top, it'll say `please enter in a number` and I'm unable to enter in any numbers. I'm confused.