I'm working on an integer array. I have it to accept exactly ten values. How can I make it accept UP TO ten numbers, and stopping if a zero is entered? I should probably be using a WHILE loop instead?
Here's a snippit of some code from my program.
void main (void)
printf("Enter 10 numbers\n");
for(x=0; x<=9; x++)
printf("Number %d:", x+1);