I have this code below that accepts up to 8 numbers and stores them in an array. I use a zero to stop taking numbers. I am trying to keep the zero from being stored in the array. Is there a way to do it?
printf("\nPlease enter up to 8 numbers to stop entering numbers enter zero\n");
theNums[i][j] = '\0';
if (theNums[i]=='0') /*exit if zero*/
numberCount ++; /*count numbers being entered*/