Checking of integer no enter by user


How can we check that whether user has entered an integer number or not?
check for a decimal separator in the input
can you explain how can i do this?
read the input, check every character, if you find something that isn't strictly a digit it's not an integer
I have still facing problem. would you please write the code for that?
Topic archived. No new replies allowed.