error message when characters are input

Hey everyone, I'm trying to write a program that asks the user to input a number and then it will tell them if the number is odd or even. I have done this but i also want the program to display an error message if the user inputs a character instead of a number. how would i go about doing this?
You can use isalpha. It helps to check if is an alphabetic letter. Hope this is what you want :)
Topic archived. No new replies allowed.