i am having trouble getting my Array to work with the sentinel values i have placed in the while loop. the user is supposed to be able to input up to 50 numbers or type -999 to end the program and then the program outputs all the numbers entered; neither of the sentinel values i have placed are working though and i'm not sure why i would appreciate any kind of help or nudge in the right direction.Code:#include<stdio.h> #include<stdlib.h> #define SIZE 50 main() { int value = 0, num[SIZE] = { 0 }; int i = 0; printf("Enter up to 50 numbers. (enter -999 to stop)\n"); while (num[i] != -999 || value != 50) { scanf_s("%i", &num[i]); value++; printf("Enter a new number.\n"); } for (i = 0; i < SIZE; i++) { printf("%i\n", num[i]); } system("pause"); }