Hello,
I have several input prompts in my code but the default of zero keeps making the code run right through the prompts. How do I clean out the input and make the user change the value so the program stops and waits for input?
Code:int choice; char Col_line[100]; printf("How Much? \n"); fgets(Col_line, sizeof(Col_line), stdin); sscanf(Col_line, "%d", &choice);