C Programming

Handling User Input In Cscanf() has problems, in that if a
user is expected to type an integer, and types a string instead,
often the program bombs. This can be overcome by reading all
input as a string (use getchar()),
and then converting the string to the
correct data type.