I'm learning how to do arrays and have been stuck on this project currently. I've attached what I have, but haven't been able to figure out where I'm going wrong as the programs just continues to repeat without ending on the answer I need.

It's supposed to allow the user to enter 20 numbers, then display each number and its difference from the numeric average of the numbers entered. Part 2 of the assignment is to modify it so the user can enter and amount of numbers up to 20 until a sentinel value is entered.

```
#include <iostream>
#include <string>

using namespace std;

int main()

{
    const int SIZE = 12;
    int numbers[12] = { 0 };
    int value = 0;
    int counter = 0;
    int total = 0;
    int average = 0;
    int diffFromAvg = 0;
    int SENTINEL = -1;

    cout << "Please enter a positive number: " << endl;
    cin >> value;

    while ((counter < SIZE) && (value != SENTINEL))
    {
        total = total + value;
        numbers[counter] = value;
        counter = counter + 1;

        if (counter != SIZE) {
            cout << "Please enter a positive number: " << endl;
            cin >> value;
        }
        if (counter > 0) {
            average = total / counter;
            for (int i = 0; i <= SIZE; i--)
            {
                diffFromAvg = numbers[i] - average;
                cout << "Number[i]: " << numbers[i] << " Difference from Average is " <<
                    diffFromAvg << endl;
            }
        }
        else {
            cout << "Processing incomplete. No values in the array." << endl;
        }
    }

    system("Pause");
    return 0;
}

```