> Ah apologies for my "bad answer". Im new, and was just trying to help.
Which is good, true understanding comes when you can explain it to others.
But be aware that your answers have to be solid otherwise people will be all over you

> Salem, maybe you can provide the correct way to do it
A bullet-proof reading of an integer using only scanf?