During my first assignment, I had figured out a way to do some basic error checking when using scanf function for int input. This was my solution :
#include &