why do you think the following "solution" in the C-language forum is a good solution?
The problem is that you have not flushed stdin. Put
fflush(stdin);
before thescanf
. That should do it.
... because you actually gave it a green cookie with the comment:
Well said. - adatapost
i realize you don't post in C very much. I guess there's a reason for that. perhaps you could review a bit before endorsing "solutions"?
Just a suggestion
thanks