I want to store some values in an array and want the array to stop storing values when the user inputs 0 So i have this code :
int numbers[100];
int i = 0;
do
{
printf("Enter the %d value : ", (i+1) );
scanf("%d", &numbers[i]);
i++;
}while (numbers[i] != 0);
But it does not work, i spent like 2 hours on this. Help please Thanks