title: How to deal with wrong input C?
body: <p>beginners question:
  Imagine this scenario: I request the user to enter an integer (getting it by using scanf) but the user enters a character, because of that the program reaches it's end... but I want to overcome it, and make the program tell him that he has provided invalid input and give the user another chance to enter an input, how can I do that?</p>