C - error message outputs for each character user enters in single line?
I've ran into a problem where it outputs that error message for EACH character they use. So say if they entered "asdas" it would output the error message five times. Is there a way to make sure the error message only gets outputted one time?
printf("Enter an answer (A, B, C): \n");
printf("Answer is invalid. Please re-enter. \n");