okay, this is what i have and am attempting to use to make a user option quit loop, once it hits the first print statement in the loop it just keeps repeating it. how can i fix this? and is this code even remotely close to what it should look like
{ int id_num[20];
int num_chair[20];
int num_sofa[20];
{int x=1;
printf("Enter <0> under ID number when finished\n");
scanf("%d", &id_num[x]);
while(id_num[x] != 0)
printf("Enter the amount of chairs you desire to order\n");
scanf ("%d", &num_chair);
printf("Enter the amount of sofas you desire to order\n");
scanf ("%d", &num_sofa);
printf ("Enter <0> under ID number when finished");
scanf("%d", &id_num);
x++;
}
}